Class MTCCertificationAuthority
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.MTCCertificationAuthority
- All Implemented Interfaces:
ASN1Encodable, Encodable
ASN.1 structure for the
id-pe-mtcCertificationAuthority-SHA256
extension defined in Section 5.5 of draft-ietf-plants-merkle-tree-certs:
-- This is 2^48, the minimum possible serial number in this protocol.
mtcMinSerial INTEGER ::= 281474976710656
-- This is 2^64-1, the maximum possible serial number in this protocol.
mtcMaxSerial INTEGER ::= 18446744073709551615
MTCCertificationAuthority ::= SEQUENCE {
sigAlg AlgorithmIdentifier{SIGNATURE-ALGORITHM, {...}},
minSerial INTEGER (mtcMinSerial..mtcMaxSerial),
maxSerial INTEGER (mtcMinSerial..mtcMaxSerial)
}
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.2 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. The hash function used by
the CA's issuance logs is not a field of the structure: it is identified by
the extension type, id-pe-mtcCertificationAuthority-SHA256 for
SHA-256 (draft-06 moved it out of the structure and into the OID).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BigIntegermtcMaxSerial- 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).static final BigIntegermtcMinSerial- the smallest legal serial, 2^48, which is entry 0 of log 1 (log number 0 is not used). -
Constructor Summary
ConstructorsConstructorDescriptionMTCCertificationAuthority(ASN1ObjectIdentifier sigAlgOid, BigInteger minSerial, BigInteger maxSerial) Convenience constructor that wraps the algorithm OID in a parameterlessAlgorithmIdentifier.MTCCertificationAuthority(AlgorithmIdentifier sigAlg, BigInteger minSerial, BigInteger maxSerial) -
Method Summary
Modifier and TypeMethodDescriptionstatic MTCCertificationAuthoritygetInstance(Object obj) Method providing a primitive representation of this object suitable for encoding.Methods inherited from class ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Field Details
-
MIN_SERIAL
mtcMinSerial- the smallest legal serial, 2^48, which is entry 0 of log 1 (log number 0 is not used). -
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 Details
-
MTCCertificationAuthority
public MTCCertificationAuthority(ASN1ObjectIdentifier sigAlgOid, BigInteger minSerial, BigInteger maxSerial) Convenience constructor that wraps the algorithm OID in a parameterlessAlgorithmIdentifier. Equivalent toMTCCertificationAuthority(AlgorithmIdentifier, BigInteger, BigInteger)withnew AlgorithmIdentifier(sigAlgOid). -
MTCCertificationAuthority
public MTCCertificationAuthority(AlgorithmIdentifier sigAlg, BigInteger minSerial, BigInteger maxSerial)
-
-
Method Details
-
getInstance
-
getSigAlg
-
getMinSerial
-
getMaxSerial
-
toASN1Primitive
Description copied from class:ASN1ObjectMethod providing a primitive representation of this object suitable for encoding.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-