org.apache.derby.iapi.sql.dictionary
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.
|
Constructor Summary |
UserDescriptor(DataDictionary dataDictionary,
java.lang.String userName,
java.lang.String hashingScheme,
char[] password,
java.sql.Timestamp lastModified)
Constructor for a UserDescriptor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_userName
private java.lang.String _userName
_hashingScheme
private java.lang.String _hashingScheme
_password
private char[] _password
_lastModified
private java.sql.Timestamp _lastModified
UserDescriptor
public 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.
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 class TupleDescriptor
- See Also:
TupleDescriptor.getDescriptorType()
getDescriptorName
public java.lang.String getDescriptorName()
- Overrides:
getDescriptorName in class TupleDescriptor
- See Also:
TupleDescriptor.getDescriptorName()
Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.