public class BlowfishPasswordStorageScheme extends PasswordStorageScheme<org.forgerock.opendj.server.config.server.BlowfishPasswordStorageSchemeCfg>
Constructor and Description |
---|
BlowfishPasswordStorageScheme()
Creates a new instance of this password storage scheme.
|
Modifier and Type | Method and Description |
---|---|
boolean |
authPasswordMatches(org.forgerock.opendj.ldap.ByteSequence plaintextPassword,
String authInfo,
String authValue)
Indicates whether the provided plaintext password matches the
encoded password using the authentication password syntax with
the given authInfo and authValue components.
|
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.
|
org.forgerock.opendj.ldap.ByteString |
getPlaintextValue(org.forgerock.opendj.ldap.ByteSequence storedPassword)
Retrieves the original plaintext value for the provided stored
password.
|
String |
getStorageSchemeName()
Retrieves the name of the password storage scheme provided by
this handler.
|
void |
initializePasswordStorageScheme(org.forgerock.opendj.server.config.server.BlowfishPasswordStorageSchemeCfg configuration)
Initializes this password storage scheme handler based on the
information in the provided configuration entry.
|
boolean |
isReversible()
Indicates whether this storage scheme is reversible (i.e., it is
possible to obtain the original plaintext value from the stored
password).
|
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.
|
encodeAuthPassword, encodePasswordWithScheme, finalizePasswordStorageScheme, getAuthPasswordPlaintextValue, getAuthPasswordSchemeName, isConfigurationAcceptable, supportsAuthPasswordSyntax
public BlowfishPasswordStorageScheme()
initializePasswordStorageScheme
method.public void initializePasswordStorageScheme(org.forgerock.opendj.server.config.server.BlowfishPasswordStorageSchemeCfg configuration) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
PasswordStorageScheme
initializePasswordStorageScheme
in class PasswordStorageScheme<org.forgerock.opendj.server.config.server.BlowfishPasswordStorageSchemeCfg>
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.BlowfishPasswordStorageSchemeCfg>
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.BlowfishPasswordStorageSchemeCfg>
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.BlowfishPasswordStorageSchemeCfg>
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 isReversible()
PasswordStorageScheme
isReversible
in class PasswordStorageScheme<org.forgerock.opendj.server.config.server.BlowfishPasswordStorageSchemeCfg>
true
if this is a reversible password storage
scheme, or false
if it is not.public org.forgerock.opendj.ldap.ByteString getPlaintextValue(org.forgerock.opendj.ldap.ByteSequence storedPassword) throws DirectoryException
PasswordStorageScheme
isReversible
returns true
.getPlaintextValue
in class PasswordStorageScheme<org.forgerock.opendj.server.config.server.BlowfishPasswordStorageSchemeCfg>
storedPassword
- The password for which to obtain the
plaintext value. It should not include
the scheme name in curly braces.DirectoryException
- If it is not possible to obtain the
plaintext value for the provided
stored password.public boolean authPasswordMatches(org.forgerock.opendj.ldap.ByteSequence plaintextPassword, String authInfo, String authValue)
PasswordStorageScheme
authPasswordMatches
in class PasswordStorageScheme<org.forgerock.opendj.server.config.server.BlowfishPasswordStorageSchemeCfg>
plaintextPassword
- The plaintext password provided by the
user.authInfo
- The authInfo component of the password
encoded in the authentication password
syntax.authValue
- The authValue component of the
password encoded in the authentication
password syntax.true
if the provided plaintext password matches
the encoded password according to the authentication
password info syntax, or false
if it does not or
this storage scheme does not support the authentication
password syntax.public boolean isStorageSchemeSecure()
PasswordStorageScheme
isStorageSchemeSecure
in class PasswordStorageScheme<org.forgerock.opendj.server.config.server.BlowfishPasswordStorageSchemeCfg>
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-2017 ForgeRock AS. All Rights Reserved.