
public interface SunUnixMD5CryptPassword extends OneWayPassword
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM_SUN_CRYPT_MD5
The algorithm name "sun-crypt-md5".
|
static String |
ALGORITHM_SUN_CRYPT_MD5_BARE_SALT
The algorithm name "sun-crypt-md5-bare-salt".
|
static int |
DEFAULT_ITERATION_COUNT
The default iteration count of this password type.
|
static int |
DEFAULT_SALT_SIZE
The default salt size of this password type.
|
serialVersionUID| Modifier and Type | Method and Description |
|---|---|
SunUnixMD5CryptPassword |
clone()
Creates and returns a copy of this
Password. |
static SunUnixMD5CryptPassword |
createRaw(String algorithm,
byte[] salt,
byte[] hash,
int iterationCount)
Create a raw implementation of this password type.
|
byte[] |
getHash()
Get the hash component of this password.
|
int |
getIterationCount()
Get the iteration count of this password.
|
default IteratedSaltedPasswordAlgorithmSpec |
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, castAsgetAlgorithm, getEncoded, getFormatstatic final String ALGORITHM_SUN_CRYPT_MD5
static final String ALGORITHM_SUN_CRYPT_MD5_BARE_SALT
static final int DEFAULT_SALT_SIZE
static final int DEFAULT_ITERATION_COUNT
byte[] getSalt()
byte[] getHash()
int getIterationCount()
default IteratedSaltedPasswordAlgorithmSpec 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 otherwiseSunUnixMD5CryptPassword clone()
Password.clone in interface OneWayPasswordclone in interface PasswordPassword.static SunUnixMD5CryptPassword createRaw(String algorithm, byte[] salt, byte[] hash, int iterationCount)
PasswordFactory (via the PasswordFactory.translate(Password) method)
before it can be validated and used to verify guesses.algorithm - the algorithm namehash - the hashsalt - the saltiterationCount - the iteration countCopyright © 2020 JBoss by Red Hat. All rights reserved.