public class MD5PasswordStorageScheme extends PasswordStorageScheme<Md5PasswordStorageSchemeCfg>
Constructor and Description |
---|
MD5PasswordStorageScheme() |
Modifier and Type | Method and Description |
---|---|
ByteString |
encodePassword(ByteSequence plaintext)
Encodes the provided plaintext password for this storage scheme, without the name of the associated scheme.
|
String |
getStorageSchemeName()
Retrieves the name of the password storage scheme provided by this handler.
|
void |
initializePasswordStorageScheme(Md5PasswordStorageSchemeCfg configuration)
Initializes this password storage scheme handler based on the information in the provided configuration entry.
|
boolean |
isStorageSchemeSecure()
Indicates whether this password storage scheme should be considered "secure".
|
boolean |
passwordMatches(ByteSequence plaintextPassword,
ByteSequence storedPassword)
Indicates whether the provided plaintext password included in a bind request matches the given stored value.
|
authPasswordMatches, destroySilently, encodeAuthPassword, encodePasswordWithScheme, finalizePasswordStorageScheme, getAuthPasswordPlaintextValue, getAuthPasswordSchemeName, getPlaintextValue, isConfigurationAcceptable, isReversible, supportsAuthPasswordSyntax
public void initializePasswordStorageScheme(Md5PasswordStorageSchemeCfg configuration) throws ConfigException, InitializationException
PasswordStorageScheme
initializePasswordStorageScheme
in class PasswordStorageScheme<Md5PasswordStorageSchemeCfg>
configuration
- The configuration entry that contains the information to use to initialize this password storage
scheme handler.ConfigException
- If an unrecoverable problem arises in the process of performing the initialization.InitializationException
- If a problem occurs during initialization that is not related to the server configuration.public String getStorageSchemeName()
PasswordStorageScheme
getStorageSchemeName
in class PasswordStorageScheme<Md5PasswordStorageSchemeCfg>
public ByteString encodePassword(ByteSequence plaintext) throws LdapException
PasswordStorageScheme
encodePassword
in class PasswordStorageScheme<Md5PasswordStorageSchemeCfg>
plaintext
- The plaintext version of the password.LdapException
- If a problem occurs while processing.public boolean passwordMatches(ByteSequence plaintextPassword, ByteSequence storedPassword)
PasswordStorageScheme
passwordMatches
in class PasswordStorageScheme<Md5PasswordStorageSchemeCfg>
plaintextPassword
- The plaintext password provided by the user as part of a simple bind attempt.storedPassword
- The stored password to compare against the provided plaintext password.true
if the provided plaintext password matches the provided stored password, or false
if
not.public boolean isStorageSchemeSecure()
PasswordStorageScheme
isStorageSchemeSecure
in class PasswordStorageScheme<Md5PasswordStorageSchemeCfg>
false
if it may be trivial to discover the original plain-text password from the encoded form, or
true
if the scheme offers sufficient protection that revealing the encoded password will not
easily reveal the corresponding plain-text value.Copyright 2010-2022 ForgeRock AS.