public class DigestCredentials extends java.lang.Object implements Credentials, java.io.Serializable
A1 = MD5(username + ':' + realm + ':' + password)
digest = MD5(A1 + ':' + nonce)
Constructor and Description |
---|
DigestCredentials() |
DigestCredentials(java.lang.String userName,
java.lang.String nonce,
java.lang.String digest) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDigest() |
java.lang.String |
getNonce() |
java.lang.String |
getRealm() |
java.lang.String |
getUserName() |
void |
setDigest(java.lang.String digest) |
void |
setNonce(java.lang.String nonce) |
void |
setRealm(java.lang.String realm) |
void |
setUserName(java.lang.String userName) |
java.lang.String |
toString() |
public DigestCredentials()
public DigestCredentials(java.lang.String userName, java.lang.String nonce, java.lang.String digest)
public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
public java.lang.String getNonce()
public void setNonce(java.lang.String nonce)
public java.lang.String getRealm()
public void setRealm(java.lang.String realm)
public java.lang.String getDigest()
public void setDigest(java.lang.String digest)
public java.lang.String toString()
toString
in class java.lang.Object