public interface UnixMD5CryptPassword extends OneWayPassword
Modifier and Type | Field and Description |
---|---|
static String |
ALGORITHM_CRYPT_MD5
The algorithm name "crypt-md5".
|
static int |
ITERATION_COUNT
The fixed iteration count.
|
static int |
SALT_SIZE
The maximum salt size.
|
serialVersionUID
Modifier and Type | Method and Description |
---|---|
UnixMD5CryptPassword |
clone()
Creates and returns a copy of this
Password . |
static UnixMD5CryptPassword |
createRaw(String algorithm,
byte[] salt,
byte[] hash)
Create a raw implementation of this password type.
|
byte[] |
getHash()
Get the hash component of this password.
|
default SaltedPasswordAlgorithmSpec |
getParameterSpec()
Get the applicable algorithm parameter specification for this password type.
|
byte[] |
getSalt()
Get the salt component of this password.
|
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_CRYPT_MD5
static final int SALT_SIZE
static final int ITERATION_COUNT
byte[] getSalt()
byte[] getHash()
default SaltedPasswordAlgorithmSpec 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
otherwiseUnixMD5CryptPassword clone()
Password
.clone
in interface OneWayPassword
clone
in interface Password
Password
.static UnixMD5CryptPassword createRaw(String algorithm, byte[] salt, byte[] hash)
PasswordFactory
(via the PasswordFactory.translate(Password)
method)
before it can be validated and used to verify guesses.algorithm
- the algorithm namesalt
- the salthash
- the hashCopyright © 2017 JBoss by Red Hat. All rights reserved.