computeResponseValue
public static java.lang.String computeResponseValue(IoSession session,
java.util.HashMap<java.lang.String,java.lang.String> map,
java.lang.String method,
java.lang.String pwd,
java.lang.String charsetName,
java.lang.String body)
throws javax.security.sasl.AuthenticationException,
java.io.UnsupportedEncodingException
Computes the response to the DIGEST challenge.
- 参数:
session
- the current sessionmap
- the map holding the directives sent by the proxymethod
- the HTTP verbpwd
- the passwordcharsetName
- the name of the charset used for the challengebody
- the html body to be hashed for integrity calculations
- 返回:
- The response
- 抛出:
javax.security.sasl.AuthenticationException
- if we weren't able to find a directive value in the map
java.io.UnsupportedEncodingException
- If we weren't able to encode to ISO 8859_1 the username or realm,
or if we weren't able to encode the charsetName