HTTPClient
Class VerifyRspAuth

java.lang.Object
  |
  +--HTTPClient.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


Fields inherited from interface HTTPClient.GlobalConstants
CD_0, CD_CHUNKED, CD_CLOSE, CD_CONTLEN, CD_HDRS, CD_MP_BR, CD_NONE, HTTP, HTTP_1_0, HTTP_1_1, HTTP_NG, HTTPS, SHTTP
 
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
TypeMethod
 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
 

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
Following copied from interface: HTTPClient.HashVerifier
Parameters:
hash - the calculated hash
len - the number of bytes read from the stream
Throws:
java.io.IOException - if the verification fails.