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 String
getAuthInfo()
Returns the authentication info.String
getAuthValue()
Returns the authentication value.String
getStorageScheme()
Returns the storage scheme name.static boolean
isEncoded(ByteString value)
Indicates whether the provided value is encoded using the auth password syntax.static AuthPassword
valueOf(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(ByteString value)
Indicates whether the provided value is encoded using the auth password syntax.- Parameters:
value
- The value for which to make the determination.- Returns:
true
if the value appears to be encoded using the auth password syntax, orfalse
if not.
-
getStorageScheme
public String getStorageScheme()
Description copied from interface:Password
Returns the storage scheme name.- Specified by:
getStorageScheme
in 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.
-
-