
public interface UnixDESCryptPassword extends OneWayPassword
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM_CRYPT_DES
The algorithm name "crypt-des".
|
serialVersionUID| Modifier and Type | Method and Description |
|---|---|
UnixDESCryptPassword |
clone()
Creates and returns a copy of this
Password. |
static UnixDESCryptPassword |
createRaw(String algorithm,
short salt,
byte[] hash)
Create a raw implementation of this password type.
|
byte[] |
getHash()
Get the crypt bytes, not including the salt.
|
default SaltedPasswordAlgorithmSpec |
getParameterSpec()
Get the applicable algorithm parameter specification for this password type.
|
short |
getSalt()
Get the salt of this password as a
short. |
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_CRYPT_DES
short getSalt()
short.byte[] getHash()
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 otherwiseUnixDESCryptPassword clone()
Password.clone in interface OneWayPasswordclone in interface PasswordPassword.static UnixDESCryptPassword createRaw(String algorithm, short 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 © 2020 JBoss by Red Hat. All rights reserved.