org.apache.mina.proxy.handlers.http.digest
Class DigestUtilities
java.lang.Object
org.apache.mina.proxy.handlers.http.digest.DigestUtilities
public class DigestUtilities
- extends java.lang.Object
DigestUtilities.java - A class supporting the HTTP DIGEST authentication (see RFC 2617).
- Since:
- MINA 2.0.0-M3
- Author:
- Apache MINA Project
Field Summary |
static java.lang.String |
SESSION_HA1
|
static java.lang.String[] |
SUPPORTED_QOPS
The supported qualities of protections. |
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SESSION_HA1
public static final java.lang.String SESSION_HA1
SUPPORTED_QOPS
public static final java.lang.String[] SUPPORTED_QOPS
- The supported qualities of protections.
DigestUtilities
public DigestUtilities()
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.
- Parameters:
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
- Throws:
javax.security.sasl.AuthenticationException
java.io.UnsupportedEncodingException
Copyright © 2004-2011 Apache MINA Project. All Rights Reserved.