Package org.forgerock.opendj.ldap
Class UserPassword
- java.lang.Object
-
- org.forgerock.opendj.ldap.UserPassword
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEncodedValue()Returns the encoded value.StringgetStorageScheme()Returns the storage scheme name in lowercase.static booleanisEncoded(ByteSequence value)Indicates whether the provided value is encoded using the user password syntax.static UserPasswordvalueOf(String userPasswordValue)Converts the provided encoded String user password into aUserPassword.
-
-
-
Method Detail
-
valueOf
public static UserPassword valueOf(String userPasswordValue) throws DecodeException
Converts 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.
-
isEncoded
public static boolean isEncoded(ByteSequence value)
Indicates 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, orfalseif not.
-
getStorageScheme
public String getStorageScheme()
Returns the storage scheme name in lowercase.- Specified by:
getStorageSchemein interfacePassword- Returns:
- The storage scheme name in lowercase.
-
getEncodedValue
public String getEncodedValue()
Returns the encoded value.- Returns:
- The encoded value.
-
-