public final class UserDescriptor extends TupleDescriptor
Modifier and Type | Field | Description |
---|---|---|
private java.lang.String |
_hashingScheme |
|
private java.sql.Timestamp |
_lastModified |
|
private char[] |
_password |
|
private java.lang.String |
_userName |
Constructor | 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 | 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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getColumnDependableFinder, getDataDictionary, getDependableFinder, isPersistent, setDataDictionary
private java.lang.String _userName
private java.lang.String _hashingScheme
private char[] _password
private java.sql.Timestamp _lastModified
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()
TupleDescriptor
getDescriptorType
in class TupleDescriptor
TupleDescriptor.getDescriptorType()
public java.lang.String getDescriptorName()
getDescriptorName
in class TupleDescriptor
TupleDescriptor.getDescriptorName()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.