Class RawUnixDESCryptPassword
- java.lang.Object
-
- org.wildfly.security.password.interfaces.RawPassword
-
- org.wildfly.security.password.interfaces.RawUnixDESCryptPassword
-
- All Implemented Interfaces:
Serializable,Cloneable,Key,UnixDESCryptPassword,OneWayPassword,Password
class RawUnixDESCryptPassword extends RawPassword implements UnixDESCryptPassword
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]hashprivate shortsaltprivate static longserialVersionUID-
Fields inherited from interface org.wildfly.security.password.interfaces.UnixDESCryptPassword
ALGORITHM_CRYPT_DES
-
-
Constructor Summary
Constructors Constructor Description RawUnixDESCryptPassword(String algorithm, short salt, byte[] hash)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RawUnixDESCryptPasswordclone()Creates and returns a copy of thisPassword.booleanequals(Object obj)byte[]getHash()Get the crypt bytes, not including the salt.shortgetSalt()Get the salt of this password as ashort.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 java.security.Key
getAlgorithm, getEncoded, getFormat
-
Methods inherited from interface org.wildfly.security.password.Password
castAndApply, castAndApply, castAs, castAs
-
Methods inherited from interface org.wildfly.security.password.interfaces.UnixDESCryptPassword
getParameterSpec, impliesParameters
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
salt
private final short salt
-
hash
private final byte[] hash
-
-
Constructor Detail
-
RawUnixDESCryptPassword
RawUnixDESCryptPassword(String algorithm, short salt, byte[] hash)
-
-
Method Detail
-
getSalt
public short getSalt()
Description copied from interface:UnixDESCryptPasswordGet the salt of this password as ashort.- Specified by:
getSaltin interfaceUnixDESCryptPassword- Returns:
- the salt
-
getHash
public byte[] getHash()
Description copied from interface:UnixDESCryptPasswordGet the crypt bytes, not including the salt.- Specified by:
getHashin interfaceUnixDESCryptPassword- Returns:
- the crypt bytes
-
clone
public RawUnixDESCryptPassword clone()
Description copied from interface:PasswordCreates and returns a copy of thisPassword.- Specified by:
clonein interfaceOneWayPassword- Specified by:
clonein interfacePassword- Specified by:
clonein interfaceUnixDESCryptPassword- 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
-
-