Class LandmarkCertificateManager.TrustedSubtreeEntry

java.lang.Object
org.bouncycastle.cert.plants.LandmarkCertificateManager.TrustedSubtreeEntry
Enclosing class:
LandmarkCertificateManager

public static class LandmarkCertificateManager.TrustedSubtreeEntry extends Object
A trusted subtree along with the reference checkpoint that proved its consistency, per Section 7.4.
  • Constructor Details

    • TrustedSubtreeEntry

      public TrustedSubtreeEntry(long start, long end, byte[] hash, long checkpointTreeSize, byte[] checkpointRootHash)
  • Method Details

    • getStart

      public long getStart()
    • getEnd

      public long getEnd()
    • getHash

      public byte[] getHash()
    • getCheckpointTreeSize

      public long getCheckpointTreeSize()
    • getCheckpointRootHash

      public byte[] getCheckpointRootHash()
    • matches

      public boolean matches(long start, long end, byte[] hash)
    • toTrustedSubtree

      public MerkleTreeCertificateValidator.TrustedSubtree toTrustedSubtree(long logNumber)
      Bridges this accepted landmark into the validator's representation. The LandmarkCertificateManager.TrustedSubtreeManager is bound to a single log ID, so the caller supplies the log number that ID denotes.
      Parameters:
      logNumber - log number of the containing log (1 <= logNumber <= 2^16-1)