Class MTCLog

java.lang.Object
org.bouncycastle.cert.plants.MTCLog

public class MTCLog extends Object
Immutable identifier for an MTC issuance-log subtree window: the CA that operates the log, the log number (the upper 16 bits of the cert serial per Section 6.1 of draft-ietf-plants-merkle-tree-certs) and the subtree's [start, end) index range (uint48). The bound MTCCertAuth lets the log derive its own binary trust anchor ID via getLogId(), so callers can pass a single MTCLog where they previously had to thread (ca, logNumber, start, end) separately.
  • Constructor Details

    • MTCLog

      public MTCLog(MTCCertAuth ca, long logNumber, long start, long end)
      Parameters:
      ca - CA that operates this issuance log
      logNumber - log number (1 <= logNumber <= 2^16-1, Section 5.2)
      start - subtree start index (0 <= start <= 2^48-1)
      end - subtree end index (0 <= end <= 2^48-1)
  • Method Details

    • getCa

      public MTCCertAuth getCa()
      Returns:
      the CA that operates this log.
    • getLogNumber

      public long getLogNumber()
    • getStart

      public long getStart()
    • getEnd

      public long getEnd()
    • getLogId

      public byte[] getLogId()
      Returns:
      the binary trust anchor ID of this log (Section 5.2).
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object