Class RawSimpleDigestPassword
- java.lang.Object
-
- org.wildfly.security.password.interfaces.RawPassword
-
- org.wildfly.security.password.interfaces.RawSimpleDigestPassword
-
- All Implemented Interfaces:
Serializable,Cloneable,Key,SimpleDigestPassword,OneWayPassword,Password
class RawSimpleDigestPassword extends RawPassword implements SimpleDigestPassword
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]digestprivate static longserialVersionUID-
Fields inherited from interface org.wildfly.security.password.interfaces.SimpleDigestPassword
ALGORITHM_SIMPLE_DIGEST_MD2, ALGORITHM_SIMPLE_DIGEST_MD5, ALGORITHM_SIMPLE_DIGEST_SHA_1, ALGORITHM_SIMPLE_DIGEST_SHA_256, ALGORITHM_SIMPLE_DIGEST_SHA_384, ALGORITHM_SIMPLE_DIGEST_SHA_512
-
-
Constructor Summary
Constructors Constructor Description RawSimpleDigestPassword(String algorithm, byte[] digest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RawSimpleDigestPasswordclone()Creates and returns a copy of thisPassword.booleanequals(Object obj)byte[]getDigest()Get the digest 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, getParameterSpec, impliesParameters
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
digest
private final byte[] digest
-
-
Constructor Detail
-
RawSimpleDigestPassword
RawSimpleDigestPassword(String algorithm, byte[] digest)
-
-
Method Detail
-
getDigest
public byte[] getDigest()
Description copied from interface:SimpleDigestPasswordGet the digest of this password.- Specified by:
getDigestin interfaceSimpleDigestPassword- Returns:
- the digest
-
clone
public RawSimpleDigestPassword clone()
Description copied from interface:PasswordCreates and returns a copy of thisPassword.- Specified by:
clonein interfaceOneWayPassword- Specified by:
clonein interfacePassword- Specified by:
clonein interfaceSimpleDigestPassword- 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
-
-