public final class UserDescriptor extends TupleDescriptor
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
_hashingScheme |
private java.sql.Timestamp |
_lastModified |
private char[] |
_password |
private java.lang.String |
_userName |
| Constructor and Description |
|---|
UserDescriptor(DataDictionary dataDictionary,
java.lang.String userName,
java.lang.String hashingScheme,
char[] password,
java.sql.Timestamp lastModified)
Constructor for a UserDescriptor.
|
| Modifier and Type | Method and 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() |
getColumnDependableFinder, getDataDictionary, getDependableFinder, isPersistent, setDataDictionaryprivate java.lang.String _userName
private java.lang.String _hashingScheme
private char[] _password
private java.sql.Timestamp _lastModified
public UserDescriptor(DataDictionary dataDictionary, java.lang.String userName, java.lang.String hashingScheme, char[] password, java.sql.Timestamp lastModified)
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.public java.lang.String getUserName()
public java.lang.String getHashingScheme()
public java.sql.Timestamp getLastModified()
public char[] getAndZeroPassword()
Zero the password after getting it so that the char[] can't be memory-sniffed.
public java.lang.String getDescriptorType()
TupleDescriptorgetDescriptorType in class TupleDescriptorTupleDescriptor.getDescriptorType()public java.lang.String getDescriptorName()
getDescriptorName in class TupleDescriptorTupleDescriptor.getDescriptorName()Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.