Top Description Fields Constructors Methods
org.hsqldb.rights

public Class User

extends Grantee
Class Inheritance
Imports
org.hsqldb.HsqlNameManager.HsqlName, .Tokens, org.hsqldb.error.Error, .ErrorCode, org.hsqldb.lib.StringConverter

A User Object extends Grantee with password for a particular database user.

Authors
Campbell Burnet (campbell-burnet@users dot sourceforge.net), Fred Toussi (fredt@users dot sourceforge.net), Blaine Simpson (blaine dot simpson at admc dot com)
Since
1.8.0
Version
2.7.3

Field Summary

Modifier and TypeField and Description
private HsqlNameManager.HsqlName
initialSchema

default schema when new Sessions started (defaults to PUBLIC schema)

public boolean
public boolean
private String
password

password.

Inherited from org.hsqldb.rights.Grantee:
fullRightsMapgranteeManagergranteeNameisPublicisRoleisSystemownerRightsroles

Constructor Summary

AccessConstructor and Description
pack-priv
User(HsqlNameManager.HsqlName name, GranteeManager manager)

Constructor

Method Summary

Modifier and TypeMethod and Description
public void
checkPassword(String value)

Checks if this object's password attribute equals specified argument, else throws.

public String

Returns:

the redo log character sequence for connecting this user
getConnectUserSQL
()

Retrieves the redo log character sequence for connecting this user

public HsqlNameManager.HsqlName
public HsqlNameManager.HsqlName
getInitialSchema()

Returns the initial schema for the user

public String
public String
getLocalUserSQL()

Returns the DDL string for local authentication.

public String
public static String
getSetCurrentPasswordDigestSQL(GranteeManager manager, String password, boolean isDigest)

Returns the SQL string for setting password digest.

public String
getSetUserPasswordDigestSQL(String password, boolean isDigest)

Returns the SQL string for setting password digest.

public String
public void
setInitialSchema(HsqlNameManager.HsqlName
An existing schema. Null value allowed, which means use the DB default session schema.
schema
)

This class does not have access to the SchemaManager, therefore caller should verify that the given schemaName exists.

public void
setPassword(String password, boolean isDigest)

Inherited from org.hsqldb.rights.Grantee:
addToFullRightscanChangeAuthorisationcanPerformScriptOpscheckAccesscheckAdmincheckDeletecheckInsertcheckReferencescheckSchemaUpdateOrGrantRightscheckSelectcheckTriggercheckUpdateclearPrivilegesgetAllDirectPrivilegesgetAllGrantableRightsgetAllGrantedPrivilegesgetAllRolesgetCatalogNamegetChangeTimestampgetColumnsForAllPrivilegesgetDirectRolesgetDirectRolesWithPublicgetGranteeAndAllRolesgetGranteeAndAllRolesWithPublicgetNamegetOwnergetRightsSQLgetSchemaNamegetTypegrantgranthasColumnRightshasNonSelectTableRighthasRolehasSchemaUpdateOrGrantRightsisAccessibleisAccessibleisAccessibleisAdminisFullyAccessibleByRoleisGrantableisGrantableisPublicisRoleisSchemaCreatorisSystemrevokerevokerevokeDbObjectsetAdminDirectupdateAllRightsupdateNestedRolesvisibleGrantees

Field Detail

initialSchemaback to summary
private HsqlNameManager.HsqlName initialSchema

default schema when new Sessions started (defaults to PUBLIC schema)

isExternalOnlyback to summary
public boolean isExternalOnly
isLocalOnlyback to summary
public boolean isLocalOnly
passwordback to summary
private String password

password.

Constructor Detail

Userback to summary
pack-priv User(HsqlNameManager.HsqlName name, GranteeManager manager)

Constructor

Method Detail

checkPasswordback to summary
public void checkPassword(String value)

Checks if this object's password attribute equals specified argument, else throws.

getConnectUserSQLback to summary
public String getConnectUserSQL()

Retrieves the redo log character sequence for connecting this user

Returns:String

the redo log character sequence for connecting this user

getInitialOrDefaultSchemaback to summary
public HsqlNameManager.HsqlName getInitialOrDefaultSchema()
getInitialSchemaback to summary
public HsqlNameManager.HsqlName getInitialSchema()

Returns the initial schema for the user

getInitialSchemaSQLback to summary
public String getInitialSchemaSQL()
getLocalUserSQLback to summary
public String getLocalUserSQL()

Returns the DDL string for local authentication.

getPasswordDigestback to summary
public String getPasswordDigest()
getSetCurrentPasswordDigestSQLback to summary
public static String getSetCurrentPasswordDigestSQL(GranteeManager manager, String password, boolean isDigest)

Returns the SQL string for setting password digest.

getSetUserPasswordDigestSQLback to summary
public String getSetUserPasswordDigestSQL(String password, boolean isDigest)

Returns the SQL string for setting password digest.

getSQLback to summary
public String getSQL()

Overrides org.hsqldb.rights.Grantee.getSQL.

Implements org.hsqldb.SchemaObject.getSQL.

setInitialSchemaback to summary
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:HsqlNameManager.HsqlName

An existing schema. Null value allowed, which means use the DB default session schema.

setPasswordback to summary
public void setPassword(String password, boolean isDigest)