Top Description Fields Constructors Methods
org.apache.derby.iapi.sql.dictionary

public final Class UserDescriptor

extends TupleDescriptor
Class Inheritance
Imports
java.sql.Timestamp, java.util.Arrays, org.apache.derby.iapi.types.DataTypeUtilities

A Descriptor for a user stored in SYSUSERS.

Field Summary

Modifier and TypeField and Description
private String
private Timestamp
private char[]
private String

Constructor Summary

AccessConstructor and Description
pack-priv
UserDescriptor(DataDictionary
The data dictionary that this descriptor lives in.
dataDictionary
,
String
Name of the user.
userName
,
String
How the password was hashed.
hashingScheme
,
char[]
The user's password.
password
,
Timestamp
Time that the password was last modified.
lastModified
)

Constructor for a UserDescriptor.

Method Summary

Modifier and TypeMethod and Description
public char[]
getAndZeroPassword()

Zero the password after getting it so that the char[] can't be memory-sniffed.

public String
public String
getDescriptorType()

Overrides org.apache.derby.iapi.sql.dictionary.TupleDescriptor.getDescriptorType.

Each descriptor must identify itself with its type; i.e index, check constraint whatever.

public String
public Timestamp
public String
Inherited from org.apache.derby.iapi.sql.dictionary.TupleDescriptor:
getColumnDependableFindergetDataDictionarygetDependableFinderisPersistentsetDataDictionary

Field Detail

_hashingSchemeback to summary
private String _hashingScheme
_lastModifiedback to summary
private Timestamp _lastModified
_passwordback to summary
private char[] _password
_userNameback to summary
private String _userName

Constructor Detail

UserDescriptorback to summary
pack-priv UserDescriptor(DataDictionary dataDictionary, String userName, String hashingScheme, char[] password, Timestamp lastModified)

Constructor for a UserDescriptor.

Parameters
dataDictionary:DataDictionary

The data dictionary that this descriptor lives in.

userName:String

Name of the user.

hashingScheme:String

How the password was hashed.

password:char[]

The user's password.

lastModified:Timestamp

Time that the password was last modified.

Method Detail

getAndZeroPasswordback to summary
public char[] getAndZeroPassword()

Zero the password after getting it so that the char[] can't be memory-sniffed.

getDescriptorNameback to summary
public String getDescriptorName()

Overrides org.apache.derby.iapi.sql.dictionary.TupleDescriptor.getDescriptorName.

See Also
TupleDescriptor#getDescriptorName
getDescriptorTypeback to summary
public String getDescriptorType()

Overrides org.apache.derby.iapi.sql.dictionary.TupleDescriptor.getDescriptorType.

Doc from org.apache.derby.iapi.sql.dictionary.TupleDescriptor.getDescriptorType.

Each descriptor must identify itself with its type; i.e index, check constraint whatever.

See Also
TupleDescriptor#getDescriptorType
getHashingSchemeback to summary
public String getHashingScheme()
getLastModifiedback to summary
public Timestamp getLastModified()
getUserNameback to summary
public String getUserName()