Class UserDescriptor
java.lang.Object
org.apache.derby.iapi.sql.dictionary.TupleDescriptor
org.apache.derby.iapi.sql.dictionary.UserDescriptor
A Descriptor for a user stored in SYSUSERS.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUserDescriptor
(DataDictionary dataDictionary, String userName, String hashingScheme, char[] password, Timestamp lastModified) Constructor for a UserDescriptor. -
Method Summary
Modifier and TypeMethodDescriptionchar[]
Zero the password after getting it so that the char[] can't be memory-sniffed.Each descriptor must identify itself with its type; i.e index, check constraint whatever.Methods inherited from class org.apache.derby.iapi.sql.dictionary.TupleDescriptor
getColumnDependableFinder, getDataDictionary, getDependableFinder, isPersistent, setDataDictionary
-
Field Details
-
_userName
-
_hashingScheme
-
_password
private char[] _password -
_lastModified
-
-
Constructor Details
-
UserDescriptor
UserDescriptor(DataDictionary dataDictionary, String userName, String hashingScheme, char[] password, 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 Details
-
getUserName
-
getHashingScheme
-
getLastModified
-
getAndZeroPassword
public char[] getAndZeroPassword()Zero the password after getting it so that the char[] can't be memory-sniffed.
-
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:
-
getDescriptorName
- Overrides:
getDescriptorName
in classTupleDescriptor
- See Also:
-