public interface ScramDigestPassword extends OneWayPassword
Modifier and Type | Field and Description |
---|---|
static String |
ALGORITHM_SCRAM_SHA_1
The algorithm "scram-sha-1".
|
static String |
ALGORITHM_SCRAM_SHA_256
The algorithm "scram-sha-256".
|
static String |
ALGORITHM_SCRAM_SHA_384
The algorithm "scram-sha-384".
|
static String |
ALGORITHM_SCRAM_SHA_512
The algorithm "scram-sha-512".
|
static int |
DEFAULT_ITERATION_COUNT
The default iteration count for this password type.
|
static int |
DEFAULT_SALT_SIZE
The default salt size for this password type.
|
serialVersionUID
Modifier and Type | Method and Description |
---|---|
ScramDigestPassword |
clone()
Creates and returns a copy of this
Password . |
static ScramDigestPassword |
createRaw(String algorithm,
byte[] digest,
byte[] salt,
int iterationCount)
Create a raw implementation of this password type.
|
byte[] |
getDigest()
Get the digest represented by this password.
|
int |
getIterationCount()
Get the iteration count used to generate the digest.
|
default IteratedSaltedPasswordAlgorithmSpec |
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, castAs
getAlgorithm, getEncoded, getFormat
static final String ALGORITHM_SCRAM_SHA_1
static final String ALGORITHM_SCRAM_SHA_256
static final String ALGORITHM_SCRAM_SHA_384
static final String ALGORITHM_SCRAM_SHA_512
static final int DEFAULT_SALT_SIZE
static final int DEFAULT_ITERATION_COUNT
byte[] getDigest()
byte[] getSalt()
int getIterationCount()
default IteratedSaltedPasswordAlgorithmSpec getParameterSpec()
Password
getParameterSpec
in interface Password
null
if this password type does not support algorithmsdefault boolean impliesParameters(AlgorithmParameterSpec parameterSpec)
Password
impliesParameters
in interface Password
parameterSpec
- the parameter specification (must not be null
)true
if the password is matched by the parameters, false
otherwiseScramDigestPassword clone()
Password
.clone
in interface OneWayPassword
clone
in interface Password
Password
.static ScramDigestPassword createRaw(String algorithm, byte[] digest, byte[] salt, int iterationCount)
PasswordFactory
(via the PasswordFactory.translate(Password)
method)
before it can be validated and used to verify guesses.algorithm
- the algorithm namedigest
- the digestsalt
- the saltiterationCount
- the iteration countCopyright © 2017 JBoss by Red Hat. All rights reserved.