Class UserDescriptor
- java.lang.Object
-
- org.apache.derby.iapi.sql.dictionary.TupleDescriptor
-
- org.apache.derby.iapi.sql.dictionary.UserDescriptor
-
public final class UserDescriptor extends TupleDescriptor
A Descriptor for a user stored in SYSUSERS.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String_hashingSchemeprivate java.sql.Timestamp_lastModifiedprivate char[]_passwordprivate java.lang.String_userName
-
Constructor Summary
Constructors Constructor Description UserDescriptor(DataDictionary dataDictionary, java.lang.String userName, java.lang.String hashingScheme, char[] password, java.sql.Timestamp lastModified)Constructor for a UserDescriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char[]getAndZeroPassword()Zero the password after getting it so that the char[] can't be memory-sniffed.java.lang.StringgetDescriptorName()java.lang.StringgetDescriptorType()Each descriptor must identify itself with its type; i.e index, check constraint whatever.java.lang.StringgetHashingScheme()java.sql.TimestampgetLastModified()java.lang.StringgetUserName()-
Methods inherited from class org.apache.derby.iapi.sql.dictionary.TupleDescriptor
getColumnDependableFinder, getDataDictionary, getDependableFinder, isPersistent, setDataDictionary
-
-
-
-
Constructor Detail
-
UserDescriptor
UserDescriptor(DataDictionary dataDictionary, java.lang.String userName, java.lang.String hashingScheme, char[] password, java.sql.Timestamp lastModified)
Constructor for a UserDescriptor.- Parameters:
dataDictionary- The data dictionary that this descriptor lives in.userName- Name of the user.hashingScheme- How the password was hashed.password- The user's password.lastModified- Time that the password was last modified.
-
-
Method Detail
-
getUserName
public java.lang.String getUserName()
-
getHashingScheme
public java.lang.String getHashingScheme()
-
getLastModified
public java.sql.Timestamp getLastModified()
-
getAndZeroPassword
public char[] getAndZeroPassword()
Zero the password after getting it so that the char[] can't be memory-sniffed.
-
getDescriptorType
public java.lang.String getDescriptorType()
Description copied from class:TupleDescriptorEach descriptor must identify itself with its type; i.e index, check constraint whatever.- Overrides:
getDescriptorTypein classTupleDescriptor- See Also:
TupleDescriptor.getDescriptorType()
-
getDescriptorName
public java.lang.String getDescriptorName()
- Overrides:
getDescriptorNamein classTupleDescriptor- See Also:
TupleDescriptor.getDescriptorName()
-
-