Package org.forgerock.opendj.ldap
Class UserPassword
java.lang.Object
org.forgerock.opendj.ldap.UserPassword
- All Implemented Interfaces:
- Password
An encoded user password that contains a storage scheme and an encoded vaulue.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the encoded value.Returns the storage scheme name in lowercase.static booleanisEncoded(ByteString value) Indicates whether the provided value is encoded using the user password syntax.static UserPasswordConverts the provided encoded String user password into aUserPassword.
- 
Method Details- 
valueOfConverts the provided encoded String user password into aUserPassword.- Parameters:
- userPasswordValue- The encoded user password to be converted.
- Returns:
- A UserPassword.
- Throws:
- DecodeException- If the provided value does not comply with the authentication password format.
 
- 
isEncodedIndicates whether the provided value is encoded using the user password syntax.- Parameters:
- value- The value for which to make the determination.
- Returns:
- trueif the value appears to be encoded using the user password syntax, or- falseif not.
 
- 
getStorageSchemeReturns the storage scheme name in lowercase.- Specified by:
- getStorageSchemein interface- Password
- Returns:
- The storage scheme name in lowercase.
 
- 
getEncodedValueReturns the encoded value.- Returns:
- The encoded value.
 
 
-