Bouncy Castle Cryptography Library 1.87

org.bouncycastle.tsp.ers
Class ERSFileData

java.lang.Object
  extended byorg.bouncycastle.tsp.ers.ERSCachingData
      extended byorg.bouncycastle.tsp.ers.ERSFileData
All Implemented Interfaces:
ERSData

public class ERSFileData
extends ERSCachingData

Generic class for holding a File of data for RFC 4998 ERS.


Constructor Summary
ERSFileData(java.io.File content)
           
 
Method Summary
protected  byte[] calculateHash(DigestCalculator digestCalculator, byte[] previousChainHash)
          Compute the hash for this data object.
 
Methods inherited from class org.bouncycastle.tsp.ers.ERSCachingData
getHash
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERSFileData

public ERSFileData(java.io.File content)
            throws java.io.FileNotFoundException
Method Detail

calculateHash

protected byte[] calculateHash(DigestCalculator digestCalculator,
                               byte[] previousChainHash)
Description copied from class: ERSCachingData
Compute the hash for this data object. Implemented by subclasses; the result is cached by ERSCachingData.getHash(DigestCalculator, byte[]).

Specified by:
calculateHash in class ERSCachingData
Parameters:
digestCalculator - the digest calculator to use.
previousChainHash - hash from an earlier chain to fold in, or null.
Returns:
the calculated hash.

Bouncy Castle Cryptography Library 1.87