
public interface SaltedSimpleDigestPassword extends OneWayPassword
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM_PASSWORD_SALT_DIGEST_MD5
Algorithm name for digest created using MD5 with the password digested first followed by the salt.
|
static String |
ALGORITHM_PASSWORD_SALT_DIGEST_SHA_1
Algorithm name for digest created using SHA-1 with the password digested first followed by the salt.
|
static String |
ALGORITHM_PASSWORD_SALT_DIGEST_SHA_256
Algorithm name for digest created using SHA-256 with the password digested first followed by the salt.
|
static String |
ALGORITHM_PASSWORD_SALT_DIGEST_SHA_384
Algorithm name for digest created using SHA-384 with the password digested first followed by the salt.
|
static String |
ALGORITHM_PASSWORD_SALT_DIGEST_SHA_512
Algorithm name for digest created using SHA-512 with the password digested first followed by the salt.
|
static String |
ALGORITHM_SALT_PASSWORD_DIGEST_MD5
Algorithm name for digest created using MD5 with the salt digested first followed by the password.
|
static String |
ALGORITHM_SALT_PASSWORD_DIGEST_SHA_1
Algorithm name for digest created using SHA-1 with the salt digested first followed by the password.
|
static String |
ALGORITHM_SALT_PASSWORD_DIGEST_SHA_256
Algorithm name for digest created using SHA-256 with the salt digested first followed by the password.
|
static String |
ALGORITHM_SALT_PASSWORD_DIGEST_SHA_384
Algorithm name for digest created using SHA-384 with the salt digested first followed by the password.
|
static String |
ALGORITHM_SALT_PASSWORD_DIGEST_SHA_512
Algorithm name for digest created using SHA-512 with the salt digested first followed by the password.
|
static int |
DEFAULT_SALT_SIZE
The default salt size (in bytes), used when generating a random salt.
|
serialVersionUID| Modifier and Type | Method and Description |
|---|---|
SaltedSimpleDigestPassword |
clone()
Creates and returns a copy of this
Password. |
static SaltedSimpleDigestPassword |
createRaw(String algorithm,
byte[] digest,
byte[] salt)
Create a raw implementation of this password type.
|
byte[] |
getDigest()
Get the digest represented by this password.
|
default SaltedPasswordAlgorithmSpec |
getParameterSpec()
Get the applicable algorithm parameter specification for this password type.
|
byte[] |
getSalt()
Get the salt used to generate the digest.
|
default boolean |
impliesParameters(AlgorithmParameterSpec parameterSpec)
Determine if this password is matched by the given parameter specification.
|
castAndApply, castAndApply, castAs, castAsgetAlgorithm, getEncoded, getFormatstatic final String ALGORITHM_PASSWORD_SALT_DIGEST_MD5
static final String ALGORITHM_PASSWORD_SALT_DIGEST_SHA_1
static final String ALGORITHM_PASSWORD_SALT_DIGEST_SHA_256
static final String ALGORITHM_PASSWORD_SALT_DIGEST_SHA_384
static final String ALGORITHM_PASSWORD_SALT_DIGEST_SHA_512
static final String ALGORITHM_SALT_PASSWORD_DIGEST_MD5
static final String ALGORITHM_SALT_PASSWORD_DIGEST_SHA_1
static final String ALGORITHM_SALT_PASSWORD_DIGEST_SHA_256
static final String ALGORITHM_SALT_PASSWORD_DIGEST_SHA_384
static final String ALGORITHM_SALT_PASSWORD_DIGEST_SHA_512
static final int DEFAULT_SALT_SIZE
byte[] getDigest()
byte[] getSalt()
default SaltedPasswordAlgorithmSpec getParameterSpec()
PasswordgetParameterSpec in interface Passwordnull if this password type does not support algorithmsdefault boolean impliesParameters(AlgorithmParameterSpec parameterSpec)
PasswordimpliesParameters in interface PasswordparameterSpec - the parameter specification (must not be null)true if the password is matched by the parameters, false otherwiseSaltedSimpleDigestPassword clone()
Password.clone in interface OneWayPasswordclone in interface PasswordPassword.static SaltedSimpleDigestPassword createRaw(String algorithm, byte[] digest, byte[] salt)
PasswordFactory (via the PasswordFactory.translate(Password) method)
before it can be validated and used to verify guesses.algorithm - the algorithm namedigest - the digestsalt - the saltCopyright © 2020 JBoss by Red Hat. All rights reserved.