Package org.bouncycastle.cert.plants
Class LandmarkCertificateManager.TrustedSubtreeEntry
- java.lang.Object
-
- org.bouncycastle.cert.plants.LandmarkCertificateManager.TrustedSubtreeEntry
-
- Enclosing class:
- LandmarkCertificateManager
public static class LandmarkCertificateManager.TrustedSubtreeEntry extends java.lang.ObjectA trusted subtree along with the reference checkpoint that proved its consistency, per Section 7.4.
-
-
Constructor Summary
Constructors Constructor Description TrustedSubtreeEntry(long start, long end, byte[] hash, long checkpointTreeSize, byte[] checkpointRootHash)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getCheckpointRootHash()longgetCheckpointTreeSize()longgetEnd()byte[]getHash()longgetStart()booleanmatches(long start, long end, byte[] hash)MerkleTreeCertificateValidator.TrustedSubtreetoTrustedSubtree(long logNumber)Bridges this accepted landmark into the validator's representation.
-
-
-
Method Detail
-
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. TheLandmarkCertificateManager.TrustedSubtreeManageris 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)
-
-