T - the type of password supported by this managed password storage
scheme.public interface PasswordStorageScheme<T extends Password>
| Modifier and Type | Method and Description |
|---|---|
T |
encodePassword(ByteSequence plaintextPassword)
Returns the specified plaintext password encoded by this password storage
scheme.
|
java.lang.String |
getName()
Retrieves the name of this password storage scheme.
|
ByteString |
getPlaintextValue(T storedPassword)
Returns the plaintext value obtained from the provided stored password if
this password storage scheme is reversible.
|
boolean |
isReversible()
Returns
true is the original plaintext value can be obtained from
the stored password; false otherwise. |
boolean |
passwordMatches(ByteSequence plaintextPassword,
T storedPassword)
Returns
true if the provided plain text password matches the
specified stored password; false otherwise. |
boolean isReversible()
true is the original plaintext value can be obtained from
the stored password; false otherwise.true is the original plaintext value can be obtained from
the stored password; false otherwise.java.lang.String getName()
Note that the name may require to be compliant with the password syntax associated to this password storage scheme.
T encodePassword(ByteSequence plaintextPassword) throws PasswordStorageSchemeException
The server will then store the returned password in the appropriate form according to the associated password's syntax.
plaintextPassword - the plaintext password to encode.PasswordStorageSchemeException - if the plaintext password could not
be encoded successfully.boolean passwordMatches(ByteSequence plaintextPassword, T storedPassword)
true if the provided plain text password matches the
specified stored password; false otherwise.plaintextPassword - the plaintext password to compare.storedPassword - the stored password to compare against the provided
plaintext password.true if the provided plain text password matches the
specified stored password; false otherwise.ByteString getPlaintextValue(T storedPassword) throws PasswordStorageSchemeException
storedPassword - the stored password to decode.PasswordStorageSchemeException - if the plaintext value could not
be obtained from the provided stored
password.