Class RawSaltedSimpleDigestPassword
- java.lang.Object
-
- org.wildfly.security.password.interfaces.RawPassword
-
- org.wildfly.security.password.interfaces.RawSaltedSimpleDigestPassword
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Key
,SaltedSimpleDigestPassword
,OneWayPassword
,Password
class RawSaltedSimpleDigestPassword extends RawPassword implements SaltedSimpleDigestPassword
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
digest
private byte[]
salt
private static long
serialVersionUID
-
Fields inherited from interface org.wildfly.security.password.interfaces.SaltedSimpleDigestPassword
ALGORITHM_PASSWORD_SALT_DIGEST_MD5, ALGORITHM_PASSWORD_SALT_DIGEST_SHA_1, ALGORITHM_PASSWORD_SALT_DIGEST_SHA_256, ALGORITHM_PASSWORD_SALT_DIGEST_SHA_384, ALGORITHM_PASSWORD_SALT_DIGEST_SHA_512, ALGORITHM_SALT_PASSWORD_DIGEST_MD5, ALGORITHM_SALT_PASSWORD_DIGEST_SHA_1, ALGORITHM_SALT_PASSWORD_DIGEST_SHA_256, ALGORITHM_SALT_PASSWORD_DIGEST_SHA_384, ALGORITHM_SALT_PASSWORD_DIGEST_SHA_512, DEFAULT_SALT_SIZE
-
-
Constructor Summary
Constructors Constructor Description RawSaltedSimpleDigestPassword(String algorithm, byte[] digest, byte[] salt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RawSaltedSimpleDigestPassword
clone()
Creates and returns a copy of thisPassword
.boolean
equals(Object obj)
byte[]
getDigest()
Get the digest represented by this password.byte[]
getSalt()
Get the salt used to generate the digest.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.SaltedSimpleDigestPassword
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
-
-
Constructor Detail
-
RawSaltedSimpleDigestPassword
RawSaltedSimpleDigestPassword(String algorithm, byte[] digest, byte[] salt)
-
-
Method Detail
-
getDigest
public byte[] getDigest()
Description copied from interface:SaltedSimpleDigestPassword
Get the digest represented by this password.- Specified by:
getDigest
in interfaceSaltedSimpleDigestPassword
- Returns:
- the digest represented by this password
-
getSalt
public byte[] getSalt()
Description copied from interface:SaltedSimpleDigestPassword
Get the salt used to generate the digest.- Specified by:
getSalt
in interfaceSaltedSimpleDigestPassword
- Returns:
- the salt used to generate the digest
-
clone
public RawSaltedSimpleDigestPassword 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 interfaceSaltedSimpleDigestPassword
- 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
-
-