org.hsqldb.rights
Class User
- java.lang.Object
-
- org.hsqldb.rights.Grantee
-
- org.hsqldb.rights.User
-
- All Implemented Interfaces:
- SchemaObject
public class User extends Grantee
A User Object extends Grantee with password for a particular database user.- Since:
- 1.8.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hsqldb.SchemaObject
SchemaObject.ConstraintTypes, SchemaObject.Deferable, SchemaObject.Nullability, SchemaObject.ParameterModes, SchemaObject.ReferentialAction, SchemaObject.ViewCheckModes
-
-
Field Summary
Fields Modifier and Type Field and Description booleanisExternalOnlybooleanisLocalOnly-
Fields inherited from interface org.hsqldb.SchemaObject
ASSERTION, CATALOG, CHARSET, COLLATION, COLUMN, CONSTRAINT, CURSOR, DOMAIN, emptyArray, FUNCTION, GRANTEE, INDEX, LABEL, PARAMETER, PROCEDURE, ROUTINE, SCHEMA, SEARCH, SEQUENCE, SERVER, SPECIFIC_ROUTINE, SUBQUERY, TABLE, TRANSITION, TRIGGER, TYPE, VARIABLE, VIEW, WRAPPER
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcheckPassword(java.lang.String value)Checks if this object's password attibute equals specified argument, else throws.java.lang.StringgetConnectUserSQL()Retrieves the redo log character sequence for connecting this userHsqlNameManager.HsqlNamegetInitialOrDefaultSchema()HsqlNameManager.HsqlNamegetInitialSchema()Returns the initial schema for the userjava.lang.StringgetInitialSchemaSQL()java.lang.StringgetLocalUserSQL()Returns the DDL string for local authentication.java.lang.StringgetPasswordDigest()static java.lang.StringgetSetCurrentPasswordDigestSQL(java.lang.String password, boolean isDigest)Returns the SQL string for setting password digest.static java.lang.StringgetSetUserPasswordDigestSQL(User user, java.lang.String password, boolean isDigest)Returns the SQL string for setting password digest.java.lang.StringgetSQL()voidsetInitialSchema(HsqlNameManager.HsqlName schema)This class does not have access to the SchemaManager, therefore caller should verify that the given schemaName exists.voidsetPassword(java.lang.String password, boolean isDigest)-
Methods inherited from class org.hsqldb.rights.Grantee
canChangeAuthorisation, checkAccess, checkAdmin, checkDelete, checkInsert, checkReferences, checkSchemaUpdateOrGrantRights, checkSelect, checkTrigger, checkUpdate, compile, getAllDirectPrivileges, getAllGrantedPrivileges, getAllRoles, getCatalogName, getChangeTimestamp, getColumnsForAllPrivileges, getComponents, getDirectRoles, getGranteeAndAllRoles, getGranteeAndAllRolesWithPublic, getName, getOwner, getReferences, getSchemaName, getType, hasColumnRights, hasNonSelectTableRight, hasRole, hasSchemaUpdateOrGrantRights, isAccessible, isAccessible, isAccessible, isAdmin, isFullyAccessibleByRole, isGrantable, isGrantable, isPublic, isRole, isSchemaCreator, isSystem, visibleGrantees
-
-
-
-
Method Detail
-
getSQL
public java.lang.String getSQL()
- Specified by:
getSQLin interfaceSchemaObject- Overrides:
getSQLin classGrantee
-
getPasswordDigest
public java.lang.String getPasswordDigest()
-
setPassword
public void setPassword(java.lang.String password, boolean isDigest)
-
checkPassword
public void checkPassword(java.lang.String value)
Checks if this object's password attibute equals specified argument, else throws.
-
getInitialSchema
public HsqlNameManager.HsqlName getInitialSchema()
Returns the initial schema for the user
-
getInitialOrDefaultSchema
public HsqlNameManager.HsqlName getInitialOrDefaultSchema()
-
setInitialSchema
public void setInitialSchema(HsqlNameManager.HsqlName schema)
This class does not have access to the SchemaManager, therefore caller should verify that the given schemaName exists.- Parameters:
schema- An existing schema. Null value allowed, which means use the DB default session schema.
-
getInitialSchemaSQL
public java.lang.String getInitialSchemaSQL()
-
getLocalUserSQL
public java.lang.String getLocalUserSQL()
Returns the DDL string for local authentication.
-
getSetUserPasswordDigestSQL
public static java.lang.String getSetUserPasswordDigestSQL(User user, java.lang.String password, boolean isDigest)
Returns the SQL string for setting password digest.
-
getSetCurrentPasswordDigestSQL
public static java.lang.String getSetCurrentPasswordDigestSQL(java.lang.String password, boolean isDigest)Returns the SQL string for setting password digest.
-
getConnectUserSQL
public java.lang.String getConnectUserSQL()
Retrieves the redo log character sequence for connecting this user- Returns:
- the redo log character sequence for connecting this user
-
-
DataMelt 3.0 © DataMelt by jWork.ORG