|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--jain.protocol.ip.sip.Credentials
|
+--jain.protocol.ip.sip.DigestCredentials
This class represents Digest Authentication scheme Credentials. When a client receives a WWW(Proxy)AuthenticateHeader containing a DigestChallenge in a ResponseMessage it is expected to retry the RequestMessage, with a (Proxy)AuthorizationHeader, which contains DigestCredentials. The values of Opaque and Algorithm must be those supplied in the WWW(Proxy)AuthenticateHeader for the entity being requested.
Any unrecognized directive must be ignored. If a directive or its value is improper, or required directives are missing, the proper response is BAD_REQUEST. If the request- digest is invalid, then a login failure should be logged, since repeated login failures from a single client may indicate an attacker attempting to guess passwords.
Credentials,
WWWAuthenticateHeader,
ProxyAuthenticateHeader| Constructor Summary | |
DigestCredentials(java.lang.String userName,
java.lang.String realm,
java.lang.String nonce,
java.lang.String digestURI,
java.lang.String response)
Creates DigestCredentials |
|
| Method Summary | |
java.lang.Object |
clone()
Creates and returns a copy of DigestCredentials |
java.lang.String |
getAlgorithm()
Gets algorithm of DigestCredentials |
java.lang.String |
getCnonce()
Gets cnonce of DigestCredentials |
java.lang.String |
getDigestURI()
Gets digestURI of DigestCredentials |
java.lang.String |
getNonce()
Gets nonce of DigestCredentials |
long |
getNonceCount()
Gets nonceCount of DigestCredentials |
java.lang.String |
getOpaque()
Gets opaque of DigestCredentials |
java.lang.String |
getQop()
Gets qop of DigestCredentials |
java.lang.String |
getRealm()
Gets realm of DigestCredentials |
java.lang.String |
getResponse()
Gets response of DigestCredentials |
java.lang.String |
getUserName()
Gets userName of DigestCredentials |
boolean |
hasAlgorithm()
Gets boolean value to indicate if the DigestCredentials has algorithm |
boolean |
hasCnonce()
Gets boolean value to indicate if the DigestCredentials has cnonce |
boolean |
hasNonceCount()
Gets boolean value to indicate if the DigestCredentials has nonceCount |
boolean |
hasOpaque()
Gets boolean value to indicate if the DigestCredentials has opaque |
boolean |
hasQop()
Gets boolean value to indicate if the DigestCredentials has qop |
void |
removeAlgorithm()
Removes algorithm from DigestCredentials |
void |
removeCnonce()
Removes cnonce from DigestCredentials |
void |
removeNonceCount()
Removes nonceCount from DigestCredentials |
void |
removeOpaque()
Removes opaque from DigestCredentials |
void |
removeQop()
Removes qop from DigestCredentials |
void |
setAlgorithm(java.lang.String algorithm)
Sets algorithm of DigestCredentials |
void |
setCnonce(java.lang.String cnonce)
Sets cnonce of DigestCredentials |
void |
setDigestURI(java.lang.String digestURI)
Sets digestURI of DigestCredentials |
void |
setNonce(java.lang.String nonce)
Sets nonce of DigestCredentials |
void |
setNonceCount(long nonceCount)
Sets nonceCount of DigestCredentials |
void |
setOpaque(java.lang.String opaque)
Sets opaque of DigestCredentials |
void |
setQop(java.lang.String qop)
Sets qop of DigestCredentials |
void |
setRealm(java.lang.String realm)
Sets nonce of DigestCredentials |
void |
setResponse(java.lang.String response)
Sets response of DigestCredentials |
void |
setUserName(java.lang.String userName)
Sets userName of DigestCredentials |
| Methods inherited from class jain.protocol.ip.sip.Credentials |
equals,
getExtension,
getExtensions,
getScheme,
hasExtension,
hasExtensions,
removeExtension,
removeExtensions,
setExtension,
setScheme,
toString |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public DigestCredentials(java.lang.String userName,
java.lang.String realm,
java.lang.String nonce,
java.lang.String digestURI,
java.lang.String response)
throws java.lang.IllegalArgumentException
userName - user namerealm - authentication realmnonce - noncedigestURI - digest URIresponse - response| Method Detail |
public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
throws java.lang.IllegalArgumentException
userName - userName
public void setNonce(java.lang.String nonce)
throws java.lang.IllegalArgumentException
nonce - noncepublic java.lang.String getNonce()
public java.lang.String getDigestURI()
public void setDigestURI(java.lang.String digestURI)
throws java.lang.IllegalArgumentException
digestURI - digestURIpublic java.lang.String getResponse()
public void setResponse(java.lang.String response)
throws java.lang.IllegalArgumentException
response - responsepublic java.lang.String getRealm()
public void setRealm(java.lang.String realm)
throws java.lang.IllegalArgumentException
nonce - nonce
public java.lang.String getOpaque()
throws ParameterNotSetException
public boolean hasOpaque()
public void removeOpaque()
public void setOpaque(java.lang.String opaque)
throws java.lang.IllegalArgumentException
opaque - opaque
public java.lang.String getCnonce()
throws ParameterNotSetException
public boolean hasCnonce()
public void removeCnonce()
public void setCnonce(java.lang.String cnonce)
throws java.lang.IllegalArgumentException
cnonce - cnonce
public long getNonceCount()
throws ParameterNotSetException
public boolean hasNonceCount()
public void removeNonceCount()
public void setNonceCount(long nonceCount)
throws java.lang.IllegalArgumentException
nonceCount - nonce
public java.lang.String getQop()
throws ParameterNotSetException
public boolean hasQop()
public void removeQop()
public void setQop(java.lang.String qop)
throws java.lang.IllegalArgumentException
qop - qop
public java.lang.String getAlgorithm()
throws ParameterNotSetException
public boolean hasAlgorithm()
public void removeAlgorithm()
public void setAlgorithm(java.lang.String algorithm)
throws java.lang.IllegalArgumentException
algorithm - noncepublic java.lang.Object clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright - 2000 Sun Microsystems