public class MTCCertificationAuthority extends ASN1Object
id-pe-mtcCertificationAuthority extension
defined in Section 5.5 of draft-ietf-plants-merkle-tree-certs:
MTCCertificationAuthority ::= SEQUENCE {
logHash AlgorithmIdentifier{DIGEST-ALGORITHM, {...}},
sigAlg AlgorithmIdentifier{SIGNATURE-ALGORITHM, {...}},
minSerial INTEGER (0..mtcMaxSerial),
maxSerial INTEGER (0..mtcMaxSerial)
}
logHash is the hash algorithm used by all issuance logs operated
by this CA. sigAlg is the CA cosigner's signature algorithm.
minSerial and maxSerial are the inclusive bounds of the cert
serial range this CA is authorized for; per Section 6.1 of the draft a serial
encodes the log number in its upper 16 bits and the entry index in the lower
48 bits (a 64-bit value), so the range can constrain either.
| Modifier and Type | Field and Description |
|---|---|
static java.math.BigInteger |
MAX_SERIAL
mtcMaxSerial - the largest legal serial, 2^64 - 1 (a serial is the
64-bit composition of a 16-bit log number and a 48-bit entry index). |
| Constructor and Description |
|---|
MTCCertificationAuthority(AlgorithmIdentifier logHash,
AlgorithmIdentifier sigAlg,
java.math.BigInteger minSerial,
java.math.BigInteger maxSerial) |
MTCCertificationAuthority(ASN1ObjectIdentifier logHashOid,
ASN1ObjectIdentifier sigAlgOid,
java.math.BigInteger minSerial,
java.math.BigInteger maxSerial)
Convenience constructor that wraps each algorithm OID in a parameterless
AlgorithmIdentifier. |
| Modifier and Type | Method and Description |
|---|---|
static MTCCertificationAuthority |
getInstance(java.lang.Object obj) |
AlgorithmIdentifier |
getLogHash() |
java.math.BigInteger |
getMaxSerial() |
java.math.BigInteger |
getMinSerial() |
AlgorithmIdentifier |
getSigAlg() |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCodepublic static final java.math.BigInteger MAX_SERIAL
mtcMaxSerial - the largest legal serial, 2^64 - 1 (a serial is the
64-bit composition of a 16-bit log number and a 48-bit entry index).public MTCCertificationAuthority(ASN1ObjectIdentifier logHashOid, ASN1ObjectIdentifier sigAlgOid, java.math.BigInteger minSerial, java.math.BigInteger maxSerial)
AlgorithmIdentifier. Equivalent to
MTCCertificationAuthority(AlgorithmIdentifier, AlgorithmIdentifier, BigInteger, BigInteger)
with new AlgorithmIdentifier(logHashOid) and
new AlgorithmIdentifier(sigAlgOid).public MTCCertificationAuthority(AlgorithmIdentifier logHash, AlgorithmIdentifier sigAlg, java.math.BigInteger minSerial, java.math.BigInteger maxSerial)
public static MTCCertificationAuthority getInstance(java.lang.Object obj)
public AlgorithmIdentifier getLogHash()
public AlgorithmIdentifier getSigAlg()
public java.math.BigInteger getMinSerial()
public java.math.BigInteger getMaxSerial()
public ASN1Primitive toASN1Primitive()
ASN1ObjecttoASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object