public class CryptPasswordStorageScheme extends PasswordStorageScheme<CryptPasswordStorageSchemeCfg> implements ConfigurationChangeListener<CryptPasswordStorageSchemeCfg>
Constructor and Description |
---|
CryptPasswordStorageScheme() |
Modifier and Type | Method and Description |
---|---|
ConfigChangeResult |
applyConfigurationChange(CryptPasswordStorageSchemeCfg configuration)
Applies the configuration changes to this change listener.
|
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(CryptPasswordStorageSchemeCfg configuration)
Initializes this password storage scheme handler based on the information in the provided configuration entry.
|
boolean |
isConfigurationAcceptable(CryptPasswordStorageSchemeCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this password storage scheme.
|
boolean |
isConfigurationChangeAcceptable(CryptPasswordStorageSchemeCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable
to this change listener.
|
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, isReversible, supportsAuthPasswordSyntax
public void initializePasswordStorageScheme(CryptPasswordStorageSchemeCfg configuration) throws ConfigException, InitializationException
PasswordStorageScheme
initializePasswordStorageScheme
in class PasswordStorageScheme<CryptPasswordStorageSchemeCfg>
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<CryptPasswordStorageSchemeCfg>
public ByteString encodePassword(ByteSequence plaintext) throws LdapException
PasswordStorageScheme
encodePassword
in class PasswordStorageScheme<CryptPasswordStorageSchemeCfg>
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<CryptPasswordStorageSchemeCfg>
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<CryptPasswordStorageSchemeCfg>
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.public boolean isConfigurationAcceptable(CryptPasswordStorageSchemeCfg configuration, List<LocalizableMessage> unacceptableReasons)
PasswordStorageScheme
isConfigurationAcceptable
in class PasswordStorageScheme<CryptPasswordStorageSchemeCfg>
configuration
- The password storage scheme configuration for which to make the determination.unacceptableReasons
- A list that may be used to hold the reasons that the provided configuration is not acceptable.true
if the provided configuration is acceptable for this password storage scheme, or
false
if not.public boolean isConfigurationChangeAcceptable(CryptPasswordStorageSchemeCfg configuration, List<LocalizableMessage> unacceptableReasons)
ConfigurationChangeListener
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<CryptPasswordStorageSchemeCfg>
configuration
- The new configuration containing the changes.unacceptableReasons
- A list that can be used to hold messages about why the
provided configuration is not acceptable.true
if the proposed change is acceptable,
or false
if it is not.public ConfigChangeResult applyConfigurationChange(CryptPasswordStorageSchemeCfg configuration)
ConfigurationChangeListener
applyConfigurationChange
in interface ConfigurationChangeListener<CryptPasswordStorageSchemeCfg>
configuration
- The new configuration containing the changes.Copyright 2010-2022 ForgeRock AS.