Package org.opends.server.core
Interface PasswordVerifier
-
public interface PasswordVerifierVerifies password against user / authenticationPasswordStorageSchemes.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static booleanauthPasswordMatches(ByteString plaintextPassword, String encodedPassword, ServerContext serverContext)Indicates whether the provided plaintext password matches the encoded password using the authentication password syntax.static booleanauthPasswordMatches(PasswordStorageScheme<?> scheme, ByteString plaintextPassword, AuthPassword password)Indicates whether the provided plaintext password matches the encoded password using the authentication password syntax.static PasswordVerifiergetPasswordVerifier(boolean isAuthPasswordSyntax)Returns the user or authentication password verifier.booleanpasswordMatches(ByteString plaintextPassword, String encodedPassword, ServerContext serverContext)Indicates whether the provided plaintext password matches the encoded password.static booleanuserPasswordMatches(ByteString plaintextPassword, String encodedPassword, ServerContext serverContext)Indicates whether the provided plaintext password matches the encoded password using the user password syntax.static booleanuserPasswordMatches(PasswordStorageScheme<?> scheme, ByteString plaintextPassword, UserPassword password)Indicates whether the provided plaintext password matches the encoded password using the user password syntax.
-
-
-
Method Detail
-
getPasswordVerifier
static PasswordVerifier getPasswordVerifier(boolean isAuthPasswordSyntax)
Returns the user or authentication password verifier.- Parameters:
isAuthPasswordSyntax- iftrue, returns the authentication password verifier, iffalse, returns the user password verifier.- Returns:
- the user or authentication password verifier
-
passwordMatches
boolean passwordMatches(ByteString plaintextPassword, String encodedPassword, ServerContext serverContext) throws DecodeException
Indicates whether the provided plaintext password matches the encoded password.- Parameters:
plaintextPassword- The plaintext password provided by the user.encodedPassword- The encoded password to verify against.serverContext- The server context- Returns:
trueif the provided plaintext password matches the encoded password,falseotherwise- Throws:
DecodeException- when the encoded password cannot be decoded
-
userPasswordMatches
static boolean userPasswordMatches(ByteString plaintextPassword, String encodedPassword, ServerContext serverContext) throws DecodeException
Indicates whether the provided plaintext password matches the encoded password using the user password syntax.- Parameters:
plaintextPassword- The plaintext password provided by the user.encodedPassword- The encoded password to verify against.serverContext- The server context- Returns:
trueif the provided plaintext password matches the encoded password, orfalseif it does not or this storage scheme does not support the user password syntax.- Throws:
DecodeException- when the encoded password cannot be decoded
-
userPasswordMatches
static boolean userPasswordMatches(PasswordStorageScheme<?> scheme, ByteString plaintextPassword, UserPassword password)
Indicates whether the provided plaintext password matches the encoded password using the user password syntax.- Parameters:
scheme- The password storage schemeplaintextPassword- The plaintext password provided by the user.password- The user password to verify.- Returns:
trueif the provided plaintext password matches the encoded password, orfalseif it does not or this storage scheme does not support the authentication password syntax.
-
authPasswordMatches
static boolean authPasswordMatches(ByteString plaintextPassword, String encodedPassword, ServerContext serverContext) throws DecodeException
Indicates whether the provided plaintext password matches the encoded password using the authentication password syntax.- Parameters:
plaintextPassword- The plaintext password provided by the user.encodedPassword- The encoded password to verify.serverContext- The server context- Returns:
trueif the provided plaintext password matches the encoded password, orfalseif it does not or this storage scheme does not support the authentication password syntax.- Throws:
DecodeException- when the encoded password cannot be decoded
-
authPasswordMatches
static boolean authPasswordMatches(PasswordStorageScheme<?> scheme, ByteString plaintextPassword, AuthPassword password)
Indicates whether the provided plaintext password matches the encoded password using the authentication password syntax.- Parameters:
scheme- The password storage schemeplaintextPassword- The plaintext password provided by the user.password- The authentication password to verify.- Returns:
trueif the provided plaintext password matches the encoded password, orfalseif it does not or this storage scheme does not support the authentication password syntax.
-
-