Package org.bouncycastle.cert.plants
Class MTCLog
- java.lang.Object
-
- org.bouncycastle.cert.plants.MTCLog
-
public class MTCLog extends java.lang.ObjectImmutable 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 boundMTCCertAuthlets the log derive its own binary trust anchor ID viagetLogId(), so callers can pass a singleMTCLogwhere they previously had to thread(ca, logNumber, start, end)separately.
-
-
Constructor Summary
Constructors Constructor Description MTCLog(MTCCertAuth ca, long logNumber, long start, long end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)MTCCertAuthgetCa()longgetEnd()byte[]getLogId()longgetLogNumber()longgetStart()inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
MTCLog
public MTCLog(MTCCertAuth ca, long logNumber, long start, long end)
- Parameters:
ca- CA that operates this issuance loglogNumber- 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 Detail
-
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(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-