public class CryptPasswordStorageScheme extends PasswordStorageScheme<org.forgerock.opendj.server.config.server.CryptPasswordStorageSchemeCfg> implements org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.CryptPasswordStorageSchemeCfg>
Constructor and Description |
---|
CryptPasswordStorageScheme()
Creates a new instance of this password storage scheme.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(org.forgerock.opendj.server.config.server.CryptPasswordStorageSchemeCfg configuration) |
org.forgerock.opendj.ldap.ByteString |
encodePassword(org.forgerock.opendj.ldap.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(org.forgerock.opendj.server.config.server.CryptPasswordStorageSchemeCfg configuration)
Initializes this password storage scheme handler based on the information in the provided configuration entry.
|
boolean |
isConfigurationAcceptable(org.forgerock.opendj.server.config.server.CryptPasswordStorageSchemeCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this password storage scheme.
|
boolean |
isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.CryptPasswordStorageSchemeCfg configuration,
List<LocalizableMessage> unacceptableReasons) |
boolean |
isStorageSchemeSecure()
Indicates whether this password storage scheme should be considered "secure".
|
boolean |
passwordMatches(org.forgerock.opendj.ldap.ByteSequence plaintextPassword,
org.forgerock.opendj.ldap.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 CryptPasswordStorageScheme()
initializePasswordStorageScheme
method.public void initializePasswordStorageScheme(org.forgerock.opendj.server.config.server.CryptPasswordStorageSchemeCfg configuration) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
PasswordStorageScheme
initializePasswordStorageScheme
in class PasswordStorageScheme<org.forgerock.opendj.server.config.server.CryptPasswordStorageSchemeCfg>
configuration
- The configuration entry that contains the information to use to initialize this password storage
scheme handler.org.forgerock.opendj.config.server.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<org.forgerock.opendj.server.config.server.CryptPasswordStorageSchemeCfg>
public org.forgerock.opendj.ldap.ByteString encodePassword(org.forgerock.opendj.ldap.ByteSequence plaintext) throws DirectoryException
PasswordStorageScheme
encodePassword
in class PasswordStorageScheme<org.forgerock.opendj.server.config.server.CryptPasswordStorageSchemeCfg>
plaintext
- The plaintext version of the password.DirectoryException
- If a problem occurs while processing.public boolean passwordMatches(org.forgerock.opendj.ldap.ByteSequence plaintextPassword, org.forgerock.opendj.ldap.ByteSequence storedPassword)
PasswordStorageScheme
passwordMatches
in class PasswordStorageScheme<org.forgerock.opendj.server.config.server.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<org.forgerock.opendj.server.config.server.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(org.forgerock.opendj.server.config.server.CryptPasswordStorageSchemeCfg configuration, List<LocalizableMessage> unacceptableReasons)
PasswordStorageScheme
isConfigurationAcceptable
in class PasswordStorageScheme<org.forgerock.opendj.server.config.server.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(org.forgerock.opendj.server.config.server.CryptPasswordStorageSchemeCfg configuration, List<LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.CryptPasswordStorageSchemeCfg>
public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(org.forgerock.opendj.server.config.server.CryptPasswordStorageSchemeCfg configuration)
applyConfigurationChange
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.CryptPasswordStorageSchemeCfg>
Copyright © 2010–2017 ForgeRock AS. All rights reserved.