public class MessageDigestAlgorithm
extends java.lang.Object
Constructor and Description |
---|
MessageDigestAlgorithm() |
Modifier and Type | Method and Description |
---|---|
(package private) static java.lang.String |
calculateResponse(java.lang.String algorithm,
java.lang.String username_value,
java.lang.String realm_value,
java.lang.String passwd,
java.lang.String nonce_value,
java.lang.String nc_value,
java.lang.String cnonce_value,
java.lang.String method,
java.lang.String digest_uri_value,
java.lang.String entity_body,
java.lang.String qop_value)
Calculates an http authentication response in accordance with rfc2617.
|
static java.lang.String calculateResponse(java.lang.String algorithm, java.lang.String username_value, java.lang.String realm_value, java.lang.String passwd, java.lang.String nonce_value, java.lang.String nc_value, java.lang.String cnonce_value, java.lang.String method, java.lang.String digest_uri_value, java.lang.String entity_body, java.lang.String qop_value)
algorithm
- a string indicating a pair of algorithms (MD5 (default),
or MD5-sess) used to produce the digest and a checksum.username_value
- username_value (see rfc2617)realm_value
- A string that has been displayed to the user in order
to determine the context of the username and password to use.passwd
- the password to encode in the challenge response.nonce_value
- A server-specified data string provided in the
challenge.cnonce_value
- an optional client-chosen value whose purpose is
to foil chosen plaintext attacks.method
- the SIP method of the request being challenged.digest_uri_value
- the value of the "uri" directive on the
Authorization header in the request.entity_body
- the entity-bodyqop_value
- Indicates what "quality of protection" the client has
applied to the message.nc_value
- the hexadecimal count of the number of requests
(including the current request) that the client has sent with the nonce
value in this request.java.lang.NullPointerException
- in case of incorrectly null parameters.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.