Package org.forgerock.opendj.ldap
Class AuthPassword
- java.lang.Object
-
- org.forgerock.opendj.ldap.AuthPassword
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthInfo()Returns the authentication info.StringgetAuthValue()Returns the authentication value.StringgetStorageScheme()Returns the storage scheme name.static booleanisEncoded(ByteSequence value)Indicates whether the provided value is encoded using the auth password syntax.static AuthPasswordvalueOf(String authPasswordValue)Converts the provided encoded String authentication password to anAuthPassword.
-
-
-
Method Detail
-
valueOf
public static AuthPassword valueOf(String authPasswordValue) throws DecodeException
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
public static boolean isEncoded(ByteSequence value)
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
public String getStorageScheme()
Description copied from interface:PasswordReturns the storage scheme name.- Specified by:
getStorageSchemein interfacePassword- Returns:
- The storage scheme name.
-
getAuthInfo
public String getAuthInfo()
Returns the authentication info.- Returns:
- The authentication info.
-
getAuthValue
public String getAuthValue()
Returns the authentication value.- Returns:
- The authentication value.
-
-