Class RawScramDigestPassword
- java.lang.Object
 - 
- org.wildfly.security.password.interfaces.RawPassword
 - 
- org.wildfly.security.password.interfaces.RawScramDigestPassword
 
 
 
- 
- All Implemented Interfaces:
 Serializable,Cloneable,Key,ScramDigestPassword,OneWayPassword,Password
class RawScramDigestPassword extends RawPassword implements ScramDigestPassword
 
- 
- 
Field Summary
Fields Modifier and Type Field Description private byte[]digestprivate intiterationCountprivate byte[]saltprivate static longserialVersionUID- 
Fields inherited from interface org.wildfly.security.password.interfaces.ScramDigestPassword
ALGORITHM_SCRAM_SHA_1, ALGORITHM_SCRAM_SHA_256, ALGORITHM_SCRAM_SHA_384, ALGORITHM_SCRAM_SHA_512, DEFAULT_ITERATION_COUNT, DEFAULT_SALT_SIZE 
 - 
 
- 
Constructor Summary
Constructors Constructor Description RawScramDigestPassword(String algorithm, byte[] digest, byte[] salt, int iterationCount) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RawScramDigestPasswordclone()Creates and returns a copy of thisPassword.booleanequals(Object obj)byte[]getDigest()Get the digest represented by this password.intgetIterationCount()Get the iteration count used to generate the digest.byte[]getSalt()Get the salt used to generate the digest.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.ScramDigestPassword
getParameterSpec, impliesParameters 
 - 
 
 - 
 
- 
- 
Field Detail
- 
serialVersionUID
private static final long serialVersionUID
- See Also:
 - Constant Field Values
 
 
- 
digest
private final byte[] digest
 
- 
salt
private final byte[] salt
 
- 
iterationCount
private final int iterationCount
 
 - 
 
- 
Constructor Detail
- 
RawScramDigestPassword
RawScramDigestPassword(String algorithm, byte[] digest, byte[] salt, int iterationCount)
 
 - 
 
- 
Method Detail
- 
getDigest
public byte[] getDigest()
Description copied from interface:ScramDigestPasswordGet the digest represented by this password.- Specified by:
 getDigestin interfaceScramDigestPassword- Returns:
 - the digest represented by this password
 
 
- 
getSalt
public byte[] getSalt()
Description copied from interface:ScramDigestPasswordGet the salt used to generate the digest.- Specified by:
 getSaltin interfaceScramDigestPassword- Returns:
 - the salt used to generate the digest
 
 
- 
getIterationCount
public int getIterationCount()
Description copied from interface:ScramDigestPasswordGet the iteration count used to generate the digest.- Specified by:
 getIterationCountin interfaceScramDigestPassword- Returns:
 - the iteration count used to generate the digest
 
 
- 
clone
public RawScramDigestPassword clone()
Description copied from interface:PasswordCreates and returns a copy of thisPassword.- Specified by:
 clonein interfaceOneWayPassword- Specified by:
 clonein interfacePassword- Specified by:
 clonein interfaceScramDigestPassword- 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
 
 - 
 
 -