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[]hashprivate intiterationCountprivate byte[]saltprivate static longserialVersionUID- 
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 RawSunUnixMD5CryptPasswordclone()Creates and returns a copy of thisPassword.booleanequals(Object obj)byte[]getHash()Get the hash component of this password.intgetIterationCount()Get the iteration count of this password.byte[]getSalt()Get the salt component of this password.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.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:SunUnixMD5CryptPasswordGet the salt component of this password.- Specified by:
 getSaltin interfaceSunUnixMD5CryptPassword- Returns:
 - the salt
 
 
- 
getHash
public byte[] getHash()
Description copied from interface:SunUnixMD5CryptPasswordGet the hash component of this password.- Specified by:
 getHashin interfaceSunUnixMD5CryptPassword- Returns:
 - the hash
 
 
- 
getIterationCount
public int getIterationCount()
Description copied from interface:SunUnixMD5CryptPasswordGet the iteration count of this password.- Specified by:
 getIterationCountin interfaceSunUnixMD5CryptPassword- Returns:
 - the iteration count
 
 
- 
clone
public RawSunUnixMD5CryptPassword clone()
Description copied from interface:PasswordCreates and returns a copy of thisPassword.- Specified by:
 clonein interfaceOneWayPassword- Specified by:
 clonein interfacePassword- Specified by:
 clonein interfaceSunUnixMD5CryptPassword- 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
 
 - 
 
 -