Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

HTTPClient
Class VerifyRspAuth  view VerifyRspAuth download VerifyRspAuth.java

java.lang.Object
  extended byHTTPClient.VerifyRspAuth
All Implemented Interfaces:
GlobalConstants, HashVerifier

class VerifyRspAuth
extends java.lang.Object
implements HashVerifier, GlobalConstants

This verifies the "rspauth" from draft-ietf-http-authentication-03


Field Summary
private  java.lang.String alg
           
static int CD_0
           
static int CD_CHUNKED
           
static int CD_CLOSE
           
static int CD_CONTLEN
           
static int CD_HDRS
           
static int CD_MP_BR
           
static int CD_NONE
          Content delimiters
private  java.lang.String cnonce
           
static boolean DebugAll
          Debug variables
static boolean DebugAuth
           
static boolean DebugConn
           
static boolean DebugDemux
           
static boolean DebugMods
           
static boolean DebugResp
           
static boolean DebugSocks
           
static boolean DebugURLC
           
private  java.lang.String HA1
           
private  java.lang.String hdr
           
static int HTTP
          possible http protocols we (might) handle
static int HTTP_1_0
          some known http versions
static int HTTP_1_1
           
static int HTTP_NG
           
static int HTTPS
           
private  java.lang.String nc
           
private  java.lang.String nonce
           
private  RoResponse resp
           
static int SHTTP
           
private  java.lang.String uri
           
 
Constructor Summary
VerifyRspAuth(java.lang.String uri, java.lang.String HA1, java.lang.String alg, java.lang.String nonce, java.lang.String cnonce, java.lang.String nc, java.lang.String hdr, RoResponse resp)
           
 
Method Summary
 void verifyHash(byte[] hash, long len)
          This method is invoked when a digest of a stream has been calculated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uri

private java.lang.String uri

HA1

private java.lang.String HA1

alg

private java.lang.String alg

nonce

private java.lang.String nonce

cnonce

private java.lang.String cnonce

nc

private java.lang.String nc

hdr

private java.lang.String hdr

resp

private RoResponse resp

DebugAll

public static final boolean DebugAll
Debug variables

See Also:
Constant Field Values

DebugConn

public static final boolean DebugConn
See Also:
Constant Field Values

DebugResp

public static final boolean DebugResp
See Also:
Constant Field Values

DebugDemux

public static final boolean DebugDemux
See Also:
Constant Field Values

DebugAuth

public static final boolean DebugAuth
See Also:
Constant Field Values

DebugSocks

public static final boolean DebugSocks
See Also:
Constant Field Values

DebugMods

public static final boolean DebugMods
See Also:
Constant Field Values

DebugURLC

public static final boolean DebugURLC
See Also:
Constant Field Values

HTTP

public static final int HTTP
possible http protocols we (might) handle

See Also:
Constant Field Values

HTTPS

public static final int HTTPS
See Also:
Constant Field Values

SHTTP

public static final int SHTTP
See Also:
Constant Field Values

HTTP_NG

public static final int HTTP_NG
See Also:
Constant Field Values

HTTP_1_0

public static final int HTTP_1_0
some known http versions

See Also:
Constant Field Values

HTTP_1_1

public static final int HTTP_1_1
See Also:
Constant Field Values

CD_NONE

public static final int CD_NONE
Content delimiters

See Also:
Constant Field Values

CD_HDRS

public static final int CD_HDRS
See Also:
Constant Field Values

CD_0

public static final int CD_0
See Also:
Constant Field Values

CD_CLOSE

public static final int CD_CLOSE
See Also:
Constant Field Values

CD_CONTLEN

public static final int CD_CONTLEN
See Also:
Constant Field Values

CD_CHUNKED

public static final int CD_CHUNKED
See Also:
Constant Field Values

CD_MP_BR

public static final int CD_MP_BR
See Also:
Constant Field Values
Constructor Detail

VerifyRspAuth

public VerifyRspAuth(java.lang.String uri,
                     java.lang.String HA1,
                     java.lang.String alg,
                     java.lang.String nonce,
                     java.lang.String cnonce,
                     java.lang.String nc,
                     java.lang.String hdr,
                     RoResponse resp)
Method Detail

verifyHash

public void verifyHash(byte[] hash,
                       long len)
                throws java.io.IOException
Description copied from interface: HashVerifier
This method is invoked when a digest of a stream has been calculated. It must verify that the hash (or some function of it) is correct and throw an IOException if it is not.

Specified by:
verifyHash in interface HashVerifier