| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private byte[] | |
| private byte[] | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | checkSchemaOwner(Schema
the schema schema)Checks if this user has schema owner rights for the specified schema. |
| public void | checkTableRight(Table
the table table, int the rights required rightMask)Checks that this user has the given rights for the specified table. |
| public ArrayList | getChildren()
Overrides org. Get the list of dependent children (for tables, this includes indexes and so on). |
| public String | |
| public String | Returns: the SQL statementtrue if the password (actually the salt and hash) should
be returned password)Get the CREATE SQL statement for this object. |
| public int | |
| private boolean | Returns: true if the user has the rightsthe schema schema)See if this user has owner rights for the specified schema |
| public boolean | Returns: true if the user has the rightsthe database object, or null for schema-only check table, int the rights required rightMask)See if this user has the given rights for this database object. |
| public boolean | |
| public void | removeChildrenAndResources(SessionLocal
the session session)Implements abstract org. Delete all dependent children objects and resources of this object. |
| public void | |
| public void | setSaltAndHash(byte[]
the salt salt, byte[] the password hash hash)Set the salt and hash of the password for this user. |
| public void | setUserPasswordHash(byte[]
the user name password hash userPasswordHash)Set the user name password hash. |
| pack-priv boolean | Returns: true if the user password hash is correctthe password data (the user password hash) userPasswordHash)Check the password of this user. |
| admin | back to summary |
|---|---|
| private boolean admin | |
| passwordHash | back to summary |
|---|---|
| private byte[] passwordHash | |
| salt | back to summary |
|---|---|
| private byte[] salt | |
| systemUser | back to summary |
|---|---|
| private final boolean systemUser | |
| User | back to summary |
|---|---|
| public User(Database database, int id, String userName, boolean systemUser) | |
| checkAdmin | back to summary |
|---|---|
| public void checkAdmin() Checks if this user has admin rights. An exception is thrown if user doesn't have them.
| |
| checkSchemaAdmin | back to summary |
|---|---|
| public void checkSchemaAdmin() Checks if this user has schema admin rights for every schema. An exception is thrown if user doesn't have them.
| |
| checkSchemaOwner | back to summary |
|---|---|
| public void checkSchemaOwner(Schema schema) Checks if this user has schema owner rights for the specified schema. An exception is thrown if user doesn't have them.
| |
| checkTableRight | back to summary |
|---|---|
| public void checkTableRight(Table table, int rightMask) Checks that this user has the given rights for the specified table.
| |
| getChildren | back to summary |
|---|---|
| public ArrayList Overrides org. Doc from org. Get the list of dependent children (for tables, this includes indexes and so on). | |
| getCreateSQL | back to summary |
|---|---|
| public String getCreateSQL() Implements abstract org. Doc from org. Construct the CREATE ... SQL statement for this object. | |
| getCreateSQL | back to summary |
|---|---|
| public String getCreateSQL(boolean password) Get the CREATE SQL statement for this object.
| |
| getType | back to summary |
|---|---|
| public int getType() Implements abstract org. Doc from org. Get the object type.
| |
| hasSchemaRight | back to summary |
|---|---|
| private boolean hasSchemaRight(Schema schema) See if this user has owner rights for the specified schema
| |
| hasTableRight | back to summary |
|---|---|
| public boolean hasTableRight(Table table, int rightMask) See if this user has the given rights for this database object.
| |
| isAdmin | back to summary |
|---|---|
| public boolean isAdmin() | |
| removeChildrenAndResources | back to summary |
|---|---|
| public void removeChildrenAndResources(SessionLocal session) Implements abstract org. Doc from org. Delete all dependent children objects and resources of this object.
| |
| setAdmin | back to summary |
|---|---|
| public void setAdmin(boolean admin) | |
| setSaltAndHash | back to summary |
|---|---|
| public void setSaltAndHash(byte[] salt, byte[] hash) Set the salt and hash of the password for this user.
| |
| setUserPasswordHash | back to summary |
|---|---|
| public void setUserPasswordHash(byte[] userPasswordHash) Set the user name password hash. A random salt is generated as well. The parameter is filled with zeros after use.
| |
| validateUserPasswordHash | back to summary |
|---|---|
| pack-priv boolean validateUserPasswordHash(byte[] userPasswordHash) Check the password of this user.
| |