Class RawDigestPassword
- java.lang.Object
 - 
- org.wildfly.security.password.interfaces.RawPassword
 - 
- org.wildfly.security.password.interfaces.RawDigestPassword
 
 
 
- 
- All Implemented Interfaces:
 Serializable,Cloneable,Key,DigestPassword,OneWayPassword,Password
class RawDigestPassword extends RawPassword implements DigestPassword
 
- 
- 
Field Summary
Fields Modifier and Type Field Description private byte[]digestprivate Stringrealmprivate static longserialVersionUIDprivate Stringusername- 
Fields inherited from interface org.wildfly.security.password.interfaces.DigestPassword
ALGORITHM_DIGEST_MD5, ALGORITHM_DIGEST_SHA, ALGORITHM_DIGEST_SHA_256, ALGORITHM_DIGEST_SHA_384, ALGORITHM_DIGEST_SHA_512, ALGORITHM_DIGEST_SHA_512_256 
 - 
 
- 
Constructor Summary
Constructors Constructor Description RawDigestPassword(String algorithm, String username, String realm, byte[] digest) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RawDigestPasswordclone()Creates and returns a copy of thisPassword.booleanequals(Object obj)byte[]getDigest()Get the digest represented by thisPassword.StringgetRealm()Get the realm thisPasswordis associated with.StringgetUsername()Get the username thisPasswordis associated with.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 org.wildfly.security.password.interfaces.DigestPassword
getParameterSpec, impliesParameters 
- 
Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat 
- 
Methods inherited from interface org.wildfly.security.password.Password
castAndApply, castAndApply, castAs, castAs 
 - 
 
 - 
 
- 
- 
Field Detail
- 
serialVersionUID
private static final long serialVersionUID
- See Also:
 - Constant Field Values
 
 
- 
username
private final String username
 
- 
realm
private final String realm
 
- 
digest
private final byte[] digest
 
 - 
 
- 
Method Detail
- 
getUsername
public String getUsername()
Description copied from interface:DigestPasswordGet the username thisPasswordis associated with.Generally a
Passwordshould not need to know this information but this is an integral part of how the representation of thisPasswordis created.- Specified by:
 getUsernamein interfaceDigestPassword- Returns:
 - the username this 
Passwordis associated with 
 
- 
getRealm
public String getRealm()
Description copied from interface:DigestPasswordGet the realm thisPasswordis associated with.Note: This is independent of the name of the realm used to obtain the
Passwordrepresentation, this is the value used to generate the digest.- Specified by:
 getRealmin interfaceDigestPassword- Returns:
 - the realm this 
Passwordis associated with 
 
- 
getDigest
public byte[] getDigest()
Description copied from interface:DigestPasswordGet the digest represented by thisPassword.- Specified by:
 getDigestin interfaceDigestPassword- Returns:
 - the digest represented by this 
Password 
 
- 
clone
public RawDigestPassword clone()
Description copied from interface:PasswordCreates and returns a copy of thisPassword.- Specified by:
 clonein interfaceDigestPassword- Specified by:
 clonein interfaceOneWayPassword- Specified by:
 clonein interfacePassword- 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
 
 - 
 
 -