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[]
hash
private int
iterationCount
private int
salt
private static long
serialVersionUID
-
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 RawBSDUnixDESCryptPassword
clone()
Creates and returns a copy of thisPassword
.boolean
equals(Object obj)
byte[]
getHash()
Get the hash segment of this password.int
getIterationCount()
Get the iteration count of this password.int
getSalt()
Get the salt segment of this password as anint
value.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 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:BSDUnixDESCryptPassword
Get the iteration count of this password.- Specified by:
getIterationCount
in interfaceBSDUnixDESCryptPassword
- Returns:
- the iteration count
-
getSalt
public int getSalt()
Description copied from interface:BSDUnixDESCryptPassword
Get the salt segment of this password as anint
value.- Specified by:
getSalt
in interfaceBSDUnixDESCryptPassword
- Returns:
- the salt segment
-
getHash
public byte[] getHash()
Description copied from interface:BSDUnixDESCryptPassword
Get the hash segment of this password.- Specified by:
getHash
in interfaceBSDUnixDESCryptPassword
- Returns:
- the hash segment
-
clone
public RawBSDUnixDESCryptPassword clone()
Description copied from interface:Password
Creates and returns a copy of thisPassword
.- Specified by:
clone
in interfaceBSDUnixDESCryptPassword
- Specified by:
clone
in interfaceOneWayPassword
- Specified by:
clone
in interfacePassword
- 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
-
-