org.apache.derby.iapi.sql.dictionary
Class UserDescriptor

java.lang.Object
  extended by org.apache.derby.iapi.sql.dictionary.TupleDescriptor
      extended by org.apache.derby.iapi.sql.dictionary.UserDescriptor

public final class UserDescriptor
extends TupleDescriptor

A Descriptor for a user stored in SYSUSERS.


Field Summary
private  java.lang.String _hashingScheme
           
private  java.sql.Timestamp _lastModified
           
private  char[] _password
           
private  java.lang.String _userName
           
 
Constructor Summary
UserDescriptor(DataDictionary dataDictionary, java.lang.String userName, java.lang.String hashingScheme, char[] password, java.sql.Timestamp lastModified)
          Constructor for a UserDescriptor.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_userName

private java.lang.String _userName

_hashingScheme

private java.lang.String _hashingScheme

_password

private char[] _password

_lastModified

private java.sql.Timestamp _lastModified
Constructor Detail

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.
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 class TupleDescriptor
See Also:
TupleDescriptor.getDescriptorType()

getDescriptorName

public java.lang.String getDescriptorName()
Overrides:
getDescriptorName in class TupleDescriptor
See Also:
TupleDescriptor.getDescriptorName()

Built on Wed 2013-06-12 15:21:56+0000, from revision ???

Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.