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
_hashingScheme
private java.sql.Timestamp
_lastModified
private char[]
_password
private 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.String
getDescriptorName()
java.lang.String
getDescriptorType()
Each descriptor must identify itself with its type; i.e index, check constraint whatever.java.lang.String
getHashingScheme()
java.sql.Timestamp
getLastModified()
java.lang.String
getUserName()
-
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:TupleDescriptor
Each descriptor must identify itself with its type; i.e index, check constraint whatever.- Overrides:
getDescriptorType
in classTupleDescriptor
- See Also:
TupleDescriptor.getDescriptorType()
-
getDescriptorName
public java.lang.String getDescriptorName()
- Overrides:
getDescriptorName
in classTupleDescriptor
- See Also:
TupleDescriptor.getDescriptorName()
-
-