public class RC4PasswordStorageScheme extends PasswordStorageScheme<Rc4PasswordStorageSchemeCfg>
Constructor and Description |
---|
RC4PasswordStorageScheme() |
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.
|
ByteString |
getPlaintextValue(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(Rc4PasswordStorageSchemeCfg 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(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, isConfigurationAcceptable, supportsAuthPasswordSyntax
public void initializePasswordStorageScheme(Rc4PasswordStorageSchemeCfg configuration) throws ConfigException, InitializationException
PasswordStorageScheme
initializePasswordStorageScheme
in class PasswordStorageScheme<Rc4PasswordStorageSchemeCfg>
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<Rc4PasswordStorageSchemeCfg>
public ByteString encodePassword(ByteSequence plaintext) throws LdapException
PasswordStorageScheme
encodePassword
in class PasswordStorageScheme<Rc4PasswordStorageSchemeCfg>
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<Rc4PasswordStorageSchemeCfg>
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<Rc4PasswordStorageSchemeCfg>
true
if this is a reversible password storage scheme, or false
if it is not.public ByteString getPlaintextValue(ByteSequence storedPassword) throws LdapException
PasswordStorageScheme
isReversible
returns true
.getPlaintextValue
in class PasswordStorageScheme<Rc4PasswordStorageSchemeCfg>
storedPassword
- The password for which to obtain the plaintext value. It should not include the scheme name in curly
braces.LdapException
- If it is not possible to obtain the plaintext value for the provided stored password.public boolean isStorageSchemeSecure()
PasswordStorageScheme
isStorageSchemeSecure
in class PasswordStorageScheme<Rc4PasswordStorageSchemeCfg>
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.