public class DigestUtilities
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SESSION_HA1 |
static java.lang.String[] |
SUPPORTED_QOPS
The supported qualities of protections.
|
Constructor and Description |
---|
DigestUtilities() |
Modifier and Type | Method and Description |
---|---|
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)
Computes the response to the DIGEST challenge.
|
public static final java.lang.String SESSION_HA1
public static final java.lang.String[] SUPPORTED_QOPS
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
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 calculationsjavax.security.sasl.AuthenticationException
java.io.UnsupportedEncodingException
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.