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[]
hash
private short
salt
private static long
serialVersionUID
-
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 RawUnixDESCryptPassword
clone()
Creates and returns a copy of thisPassword
.boolean
equals(Object obj)
byte[]
getHash()
Get the crypt bytes, not including the salt.short
getSalt()
Get the salt of this password as ashort
.int
hashCode()
-
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:UnixDESCryptPassword
Get the salt of this password as ashort
.- Specified by:
getSalt
in interfaceUnixDESCryptPassword
- Returns:
- the salt
-
getHash
public byte[] getHash()
Description copied from interface:UnixDESCryptPassword
Get the crypt bytes, not including the salt.- Specified by:
getHash
in interfaceUnixDESCryptPassword
- Returns:
- the crypt bytes
-
clone
public RawUnixDESCryptPassword clone()
Description copied from interface:Password
Creates and returns a copy of thisPassword
.- Specified by:
clone
in interfaceOneWayPassword
- Specified by:
clone
in interfacePassword
- Specified by:
clone
in interfaceUnixDESCryptPassword
- Specified by:
clone
in classRawPassword
- Returns:
- a copy of this
Password
.
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classRawPassword
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in classRawPassword
-
-