Package org.forgerock.opendj.ldap
Class AuthPassword
java.lang.Object
org.forgerock.opendj.ldap.AuthPassword
- All Implemented Interfaces:
Password
An authentication password, it has a storage scheme, authentication info and authentication value. The
authentication password syntax is defined in RFC 3112.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the authentication info.Returns the authentication value.Returns the storage scheme name.static booleanisEncoded(ByteString value) Indicates whether the provided value is encoded using the auth password syntax.static AuthPasswordConverts the provided encoded String authentication password to anAuthPassword.
-
Method Details
-
valueOf
Converts the provided encoded String authentication password to anAuthPassword.- Parameters:
authPasswordValue- The encoded authentication password value to be converted.- Returns:
- An
AuthPassword. - Throws:
DecodeException- If the provided value does not comply with the authentication password format.
-
isEncoded
Indicates whether the provided value is encoded using the auth password syntax.- Parameters:
value- The value for which to make the determination.- Returns:
trueif the value appears to be encoded using the auth password syntax, orfalseif not.
-
getStorageScheme
Description copied from interface:PasswordReturns the storage scheme name.- Specified by:
getStorageSchemein interfacePassword- Returns:
- The storage scheme name.
-
getAuthInfo
Returns the authentication info.- Returns:
- The authentication info.
-
getAuthValue
Returns the authentication value.- Returns:
- The authentication value.
-