Interface BSDUnixDESCryptPassword
- 
- All Superinterfaces:
- Cloneable,- Key,- OneWayPassword,- Password,- Serializable
 - All Known Implementing Classes:
- BSDUnixDESCryptPasswordImpl,- RawBSDUnixDESCryptPassword
 
 public interface BSDUnixDESCryptPassword extends OneWayPassword A BSD-style DES "crypt" password.- Author:
- David M. Lloyd
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringALGORITHM_BSD_CRYPT_DESThe algorithm name.static intBSD_CRYPT_DES_HASH_SIZEThe constant size of the hash, in bytes.static intBSD_CRYPT_DES_SALT_SIZEThe constant size of the salt, in bytes.static intDEFAULT_ITERATION_COUNTThe default iteration count.- 
Fields inherited from interface java.security.KeyserialVersionUID
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BSDUnixDESCryptPasswordclone()Creates and returns a copy of thisPassword.static BSDUnixDESCryptPasswordcreateRaw(String algorithm, byte[] hash, int salt, int iterationCount)Create a raw implementation of this password type.byte[]getHash()Get the hash segment of this password.intgetIterationCount()Get the iteration count of this password.default IteratedSaltedPasswordAlgorithmSpecgetParameterSpec()Get the applicable algorithm parameter specification for this password type.intgetSalt()Get the salt segment of this password as anintvalue.default booleanimpliesParameters(AlgorithmParameterSpec parameterSpec)Determine if this password is matched by the given parameter specification.- 
Methods inherited from interface java.security.KeygetAlgorithm, getEncoded, getFormat
 - 
Methods inherited from interface org.wildfly.security.password.PasswordcastAndApply, castAndApply, castAs, castAs
 
- 
 
- 
- 
- 
Field Detail- 
ALGORITHM_BSD_CRYPT_DESstatic final String ALGORITHM_BSD_CRYPT_DES The algorithm name.- See Also:
- Constant Field Values
 
 - 
BSD_CRYPT_DES_HASH_SIZEstatic final int BSD_CRYPT_DES_HASH_SIZE The constant size of the hash, in bytes.- See Also:
- Constant Field Values
 
 - 
BSD_CRYPT_DES_SALT_SIZEstatic final int BSD_CRYPT_DES_SALT_SIZE The constant size of the salt, in bytes.- See Also:
- Constant Field Values
 
 - 
DEFAULT_ITERATION_COUNTstatic final int DEFAULT_ITERATION_COUNT The default iteration count.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getIterationCountint getIterationCount() Get the iteration count of this password.- Returns:
- the iteration count
 
 - 
getSaltint getSalt() Get the salt segment of this password as anintvalue.- Returns:
- the salt segment
 
 - 
getHashbyte[] getHash() Get the hash segment of this password.- Returns:
- the hash segment
 
 - 
getParameterSpecdefault IteratedSaltedPasswordAlgorithmSpec getParameterSpec() Description copied from interface:PasswordGet the applicable algorithm parameter specification for this password type.- Specified by:
- getParameterSpecin interface- Password
- Returns:
- the algorithm parameter specification, or nullif this password type does not support algorithms
 
 - 
impliesParametersdefault boolean impliesParameters(AlgorithmParameterSpec parameterSpec) Description copied from interface:PasswordDetermine if this password is matched by the given parameter specification.- Specified by:
- impliesParametersin interface- Password
- Parameters:
- parameterSpec- the parameter specification (must not be- null)
- Returns:
- trueif the password is matched by the parameters,- falseotherwise
 
 - 
cloneBSDUnixDESCryptPassword clone() Creates and returns a copy of thisPassword.- Specified by:
- clonein interface- OneWayPassword
- Specified by:
- clonein interface- Password
- Returns:
- a copy of this Password.
 
 - 
createRawstatic BSDUnixDESCryptPassword createRaw(String algorithm, byte[] hash, int salt, int iterationCount) Create a raw implementation of this password type. No validation of the content is performed, and the password must be "adopted" in to aPasswordFactory(via thePasswordFactory.translate(Password)method) before it can be validated and used to verify guesses.- Parameters:
- algorithm- the algorithm name
- hash- the hash
- salt- the salt
- iterationCount- the iteration count
- Returns:
- the raw password implementation
 
 
- 
 
-