Class LandmarkCertificateManager.TrustedSubtreeEntry
java.lang.Object
org.bouncycastle.cert.plants.LandmarkCertificateManager.TrustedSubtreeEntry
- Enclosing class:
LandmarkCertificateManager
A trusted subtree along with the reference checkpoint that proved its
consistency, per Section 7.4.
-
Constructor Summary
ConstructorsConstructorDescriptionTrustedSubtreeEntry(long start, long end, byte[] hash, long checkpointTreeSize, byte[] checkpointRootHash) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]longlonggetEnd()byte[]getHash()longgetStart()booleanmatches(long start, long end, byte[] hash) toTrustedSubtree(long logNumber) Bridges this accepted landmark into the validator's representation.
-
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
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)
-