Package org.bouncycastle.tsp.ers
Class ERSFileData
- java.lang.Object
-
- org.bouncycastle.tsp.ers.ERSCachingData
-
- org.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
Constructors Constructor Description ERSFileData(java.io.File content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]calculateHash(DigestCalculator digestCalculator, byte[] previousChainHash)Compute the hash for this data object.-
Methods inherited from class org.bouncycastle.tsp.ers.ERSCachingData
getHash
-
-
-
-
Method Detail
-
calculateHash
protected byte[] calculateHash(DigestCalculator digestCalculator, byte[] previousChainHash)
Description copied from class:ERSCachingDataCompute the hash for this data object. Implemented by subclasses; the result is cached byERSCachingData.getHash(DigestCalculator, byte[]).- Specified by:
calculateHashin classERSCachingData- Parameters:
digestCalculator- the digest calculator to use.previousChainHash- hash from an earlier chain to fold in, or null.- Returns:
- the calculated hash.
-
-