Class ERSCachingData

    • Constructor Summary

      Constructors 
      Constructor Description
      ERSCachingData()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract byte[] calculateHash​(org.bouncycastle.operator.DigestCalculator digestCalculator, byte[] previousChainHash)  
      byte[] getHash​(org.bouncycastle.operator.DigestCalculator digestCalculator, byte[] previousChainHash)
      Generates a hash for the whole DataGroup.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ERSCachingData

        public ERSCachingData()
    • Method Detail

      • getHash

        public byte[] getHash​(org.bouncycastle.operator.DigestCalculator digestCalculator,
                              byte[] previousChainHash)
        Generates a hash for the whole DataGroup.
        Specified by:
        getHash in interface ERSData
        Parameters:
        digestCalculator - the DigestCalculator to use for computing the hash
        previousChainHash - hash from an earlier chain if it needs to be included.
        Returns:
        a hash that is representative of the whole DataGroup
      • calculateHash

        protected abstract byte[] calculateHash​(org.bouncycastle.operator.DigestCalculator digestCalculator,
                                                byte[] previousChainHash)