Interface ERSData

All Known Implementing Classes:
ERSByteData, ERSCachingData, ERSDataGroup, ERSDirectoryDataGroup, ERSFileData, ERSInputStreamData

public interface ERSData
General interface for a data object covered by an RFC 4998 Evidence Record - anything (a byte array, file, stream, or ERSDataGroup) that can produce the hash used as a leaf in the archive time-stamp's hash tree.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    getHash(DigestCalculator digestCalculator, byte[] previousChainHash)
    Return the calculated hash for the Data
  • Method Details

    • getHash

      byte[] getHash(DigestCalculator digestCalculator, byte[] previousChainHash)
      Return the calculated hash for the Data
      Parameters:
      digestCalculator - digest calculator to use.
      previousChainHash - hash from an earlier chain if it needs to be included.
      Returns:
      calculated hash.