Package org.passay.support
Class AbstractReference
java.lang.Object
org.passay.support.AbstractReference
- All Implemented Interfaces:
Reference
- Direct Known Subclasses:
HistoricalReference,SourceReference
Common password reference implementation.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractReference(String label, CharSequence password) Creates a new abstract reference.AbstractReference(String label, CharSequence password, Salt salt) Creates a new abstract reference.AbstractReference(String label, UnicodeString password) Creates a new abstract reference.AbstractReference(String label, UnicodeString password, Salt salt) Creates a new abstract reference. -
Method Summary
-
Field Details
-
label
Label to identify this password. -
password
Reference password. -
salt
Salt that was applied to reference password before digesting it.
-
-
Constructor Details
-
AbstractReference
Creates a new abstract reference.- Parameters:
label- label for this passwordpassword- password string
-
AbstractReference
Creates a new abstract reference.- Parameters:
label- label for this passwordpassword- password string
-
AbstractReference
Creates a new abstract reference.- Parameters:
label- label for this passwordpassword- password stringsalt- salt that was applied to password
-
AbstractReference
Creates a new abstract reference.- Parameters:
label- label for this passwordpassword- password stringsalt- salt that was applied to password
-
-
Method Details
-
getLabel
Returns the label.- Returns:
- reference label
-
getPassword
Description copied from interface:ReferenceReturns the password associated with this reference.- Specified by:
getPasswordin interfaceReference- Returns:
- password string
-
getSalt
Description copied from interface:ReferenceReturns the salt that was applied to the reference password before digesting it. -
toString
-
clear
public void clear()Description copied from interface:ReferenceClears the memory of the underlying objects in this reference.
-