Class RawBSDUnixDESCryptPassword
- java.lang.Object
-
- org.wildfly.security.password.interfaces.RawPassword
-
- org.wildfly.security.password.interfaces.RawBSDUnixDESCryptPassword
-
- All Implemented Interfaces:
Serializable,Cloneable,Key,BSDUnixDESCryptPassword,OneWayPassword,Password
class RawBSDUnixDESCryptPassword extends RawPassword implements BSDUnixDESCryptPassword
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]hashprivate intiterationCountprivate intsaltprivate static longserialVersionUID-
Fields inherited from interface org.wildfly.security.password.interfaces.BSDUnixDESCryptPassword
ALGORITHM_BSD_CRYPT_DES, BSD_CRYPT_DES_HASH_SIZE, BSD_CRYPT_DES_SALT_SIZE, DEFAULT_ITERATION_COUNT
-
-
Constructor Summary
Constructors Constructor Description RawBSDUnixDESCryptPassword(String algorithm, int iterationCount, int salt, byte[] hash)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RawBSDUnixDESCryptPasswordclone()Creates and returns a copy of thisPassword.booleanequals(Object obj)byte[]getHash()Get the hash segment of this password.intgetIterationCount()Get the iteration count of this password.intgetSalt()Get the salt segment of this password as anintvalue.inthashCode()-
Methods inherited from class org.wildfly.security.password.interfaces.RawPassword
getAlgorithm, getEncoded, getFormat
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.security.password.interfaces.BSDUnixDESCryptPassword
getParameterSpec, impliesParameters
-
Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat
-
Methods inherited from interface org.wildfly.security.password.Password
castAndApply, castAndApply, castAs, castAs
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
iterationCount
private final int iterationCount
-
salt
private final int salt
-
hash
private final byte[] hash
-
-
Constructor Detail
-
RawBSDUnixDESCryptPassword
RawBSDUnixDESCryptPassword(String algorithm, int iterationCount, int salt, byte[] hash)
-
-
Method Detail
-
getIterationCount
public int getIterationCount()
Description copied from interface:BSDUnixDESCryptPasswordGet the iteration count of this password.- Specified by:
getIterationCountin interfaceBSDUnixDESCryptPassword- Returns:
- the iteration count
-
getSalt
public int getSalt()
Description copied from interface:BSDUnixDESCryptPasswordGet the salt segment of this password as anintvalue.- Specified by:
getSaltin interfaceBSDUnixDESCryptPassword- Returns:
- the salt segment
-
getHash
public byte[] getHash()
Description copied from interface:BSDUnixDESCryptPasswordGet the hash segment of this password.- Specified by:
getHashin interfaceBSDUnixDESCryptPassword- Returns:
- the hash segment
-
clone
public RawBSDUnixDESCryptPassword clone()
Description copied from interface:PasswordCreates and returns a copy of thisPassword.- Specified by:
clonein interfaceBSDUnixDESCryptPassword- Specified by:
clonein interfaceOneWayPassword- Specified by:
clonein interfacePassword- Specified by:
clonein classRawPassword- Returns:
- a copy of this
Password.
-
hashCode
public int hashCode()
- Specified by:
hashCodein classRawPassword
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin classRawPassword
-
-