Class RawSunUnixMD5CryptPassword
- java.lang.Object
-
- org.wildfly.security.password.interfaces.RawPassword
-
- org.wildfly.security.password.interfaces.RawSunUnixMD5CryptPassword
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Key
,SunUnixMD5CryptPassword
,OneWayPassword
,Password
class RawSunUnixMD5CryptPassword extends RawPassword implements SunUnixMD5CryptPassword
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
hash
private int
iterationCount
private byte[]
salt
private static long
serialVersionUID
-
Fields inherited from interface org.wildfly.security.password.interfaces.SunUnixMD5CryptPassword
ALGORITHM_SUN_CRYPT_MD5, ALGORITHM_SUN_CRYPT_MD5_BARE_SALT, DEFAULT_ITERATION_COUNT, DEFAULT_SALT_SIZE
-
-
Constructor Summary
Constructors Constructor Description RawSunUnixMD5CryptPassword(String algorithm, byte[] salt, byte[] hash, int iterationCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RawSunUnixMD5CryptPassword
clone()
Creates and returns a copy of thisPassword
.boolean
equals(Object obj)
byte[]
getHash()
Get the hash component of this password.int
getIterationCount()
Get the iteration count of this password.byte[]
getSalt()
Get the salt component of this password.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.SunUnixMD5CryptPassword
getParameterSpec, impliesParameters
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
salt
private final byte[] salt
-
hash
private final byte[] hash
-
iterationCount
private final int iterationCount
-
-
Constructor Detail
-
RawSunUnixMD5CryptPassword
RawSunUnixMD5CryptPassword(String algorithm, byte[] salt, byte[] hash, int iterationCount)
-
-
Method Detail
-
getSalt
public byte[] getSalt()
Description copied from interface:SunUnixMD5CryptPassword
Get the salt component of this password.- Specified by:
getSalt
in interfaceSunUnixMD5CryptPassword
- Returns:
- the salt
-
getHash
public byte[] getHash()
Description copied from interface:SunUnixMD5CryptPassword
Get the hash component of this password.- Specified by:
getHash
in interfaceSunUnixMD5CryptPassword
- Returns:
- the hash
-
getIterationCount
public int getIterationCount()
Description copied from interface:SunUnixMD5CryptPassword
Get the iteration count of this password.- Specified by:
getIterationCount
in interfaceSunUnixMD5CryptPassword
- Returns:
- the iteration count
-
clone
public RawSunUnixMD5CryptPassword 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 interfaceSunUnixMD5CryptPassword
- 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
-
-