org.apache.mina.proxy.handlers.http.digest
Class DigestUtilities
java.lang.Object
org.apache.mina.proxy.handlers.http.digest.DigestUtilities
public class DigestUtilities
- extends Object
DigestUtilities.java - A class supporting the HTTP DIGEST authentication (see RFC 2617).
- Since:
- MINA 2.0.0-M3
- Author:
- Apache MINA Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SESSION_HA1
public static final String SESSION_HA1
SUPPORTED_QOPS
public static final String[] SUPPORTED_QOPS
- The supported qualities of protections.
DigestUtilities
public DigestUtilities()
computeResponseValue
public static String computeResponseValue(IoSession session,
HashMap<String,String> map,
String method,
String pwd,
String charsetName,
String body)
throws AuthenticationException,
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:
AuthenticationException
UnsupportedEncodingException
Copyright © 2004-2012 Apache MINA Project. All Rights Reserved.