public class DigestUtilities extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SESSION_HA1
The Session digest attribute name
|
static String[] |
SUPPORTED_QOPS
The supported qualities of protections.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
computeResponseValue(IoSession session,
Map<String,String> map,
String method,
String pwd,
String charsetName,
String body)
Computes the response to the DIGEST challenge.
|
public static final String SESSION_HA1
public static final String[] SUPPORTED_QOPS
public static String computeResponseValue(IoSession session, Map<String,String> map, String method, String pwd, String charsetName, String body) throws AuthenticationException, UnsupportedEncodingException
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 calculationsAuthenticationException - if we weren't able to find a directive value in the mapUnsupportedEncodingException - If we weren't able to encode to ISO 8859_1 the username or realm,
or if we weren't able to encode the charsetNameCopyright © 2004–2024 Apache MINA Project. All rights reserved.