cnrg.itx.ds
Class Password

java.lang.Object
  |
  +--cnrg.itx.ds.Password

public class Password
extends java.lang.Object

This class provides an encapsulation to store user's password information.


Field Summary
private static char[] digits
           
private static java.lang.String keySALT
           
private  byte[] m_passwd
           
 
Constructor Summary
Password(java.lang.String strPW)
          Constructor for String
 
Method Summary
 java.lang.String toString()
          Converts to string representation to be stored in the directory database
(package private)  boolean verified(AuthenticateRecord inputSEC)
          Verify against a given authenticated record object
 boolean verified(Password inputPW)
          Verify against a given password object
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

m_passwd

private byte[] m_passwd

keySALT

private static java.lang.String keySALT

digits

private static final char[] digits
Constructor Detail

Password

public Password(java.lang.String strPW)
Constructor for String
Parameters:
strPW - input password string
Method Detail

verified

public boolean verified(Password inputPW)
Verify against a given password object
Parameters:
inputPW - input password
Returns:
true if verified successfully; false otherwise

verified

boolean verified(AuthenticateRecord inputSEC)
Verify against a given authenticated record object
Parameters:
inputSEC - input authenticated record object
Returns:
true if verified successfully; false otherwise

toString

public java.lang.String toString()
Converts to string representation to be stored in the directory database
Returns:
string representation of this Password object
Overrides:
toString in class java.lang.Object