Interface UnixMD5CryptPassword
- 
- All Superinterfaces:
- Cloneable,- Key,- OneWayPassword,- Password,- Serializable
 
 public interface UnixMD5CryptPassword extends OneWayPassword The UNIX modular-crypt MD5 crypt algorithm.- Author:
- David M. Lloyd
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringALGORITHM_CRYPT_MD5The algorithm name "crypt-md5".static intITERATION_COUNTThe fixed iteration count.static intSALT_SIZEThe maximum salt size.- 
Fields inherited from interface java.security.KeyserialVersionUID
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UnixMD5CryptPasswordclone()Creates and returns a copy of thisPassword.static UnixMD5CryptPasswordcreateRaw(String algorithm, byte[] salt, byte[] hash)Create a raw implementation of this password type.byte[]getHash()Get the hash component of this password.default SaltedPasswordAlgorithmSpecgetParameterSpec()Get the applicable algorithm parameter specification for this password type.byte[]getSalt()Get the salt component of this password.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_CRYPT_MD5static final String ALGORITHM_CRYPT_MD5 The algorithm name "crypt-md5".- See Also:
- Constant Field Values
 
 - 
SALT_SIZEstatic final int SALT_SIZE The maximum salt size.- See Also:
- Constant Field Values
 
 - 
ITERATION_COUNTstatic final int ITERATION_COUNT The fixed iteration count.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getSaltbyte[] getSalt() Get the salt component of this password.- Returns:
- the salt component
 
 - 
getHashbyte[] getHash() Get the hash component of this password.- Returns:
- the hash component
 
 - 
getParameterSpecdefault SaltedPasswordAlgorithmSpec 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
 
 - 
cloneUnixMD5CryptPassword 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 UnixMD5CryptPassword createRaw(String algorithm, byte[] salt, byte[] hash) 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
- salt- the salt
- hash- the hash
- Returns:
- the raw password implementation
 
 
- 
 
-