com.bradmcevoy.http.http11.auth
Class DigestResponse

java.lang.Object
  extended by com.bradmcevoy.http.http11.auth.DigestResponse

public class DigestResponse
extends java.lang.Object

This class encapsulates all of the information from a client as a response to a Digest authentication request.

Author:
brad

Constructor Summary
DigestResponse(Auth auth, Request request)
           
DigestResponse(Request.Method method, java.lang.String user, java.lang.String realm, java.lang.String nonce, java.lang.String uri, java.lang.String responseDigest, java.lang.String qop, java.lang.String nc, java.lang.String cnonce)
           
 
Method Summary
 java.lang.String getCnonce()
           
 Request.Method getMethod()
           
 java.lang.String getNc()
           
 java.lang.String getNonce()
           
 java.lang.String getQop()
           
 java.lang.String getRealm()
           
 java.lang.String getResponseDigest()
          This is the response to the challenge.
 java.lang.String getUri()
           
 java.lang.String getUser()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigestResponse

public DigestResponse(Auth auth,
                      Request request)

DigestResponse

public DigestResponse(Request.Method method,
                      java.lang.String user,
                      java.lang.String realm,
                      java.lang.String nonce,
                      java.lang.String uri,
                      java.lang.String responseDigest,
                      java.lang.String qop,
                      java.lang.String nc,
                      java.lang.String cnonce)
Method Detail

getMethod

public Request.Method getMethod()

getUser

public java.lang.String getUser()

getRealm

public java.lang.String getRealm()

getNonce

public java.lang.String getNonce()

getUri

public java.lang.String getUri()

getResponseDigest

public java.lang.String getResponseDigest()
This is the response to the challenge. It is effectively The Answer from the user agent. Note the overloaded meanings of the word "response". This class is a response to a challenge, but is sent in a request from the user agent.

Returns:

getQop

public java.lang.String getQop()

getNc

public java.lang.String getNc()

getCnonce

public java.lang.String getCnonce()


Copyright © 2011. All Rights Reserved.