|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.MTCCertificationAuthority
ASN.1 structure for the 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) }
is the CA cosigner's signature algorithm. and 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, for SHA-256 (draft-06 moved it out of the structure and into the OID).
| Field Summary | |
static java.math.BigInteger |
MAX_SERIAL
- 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 java.math.BigInteger |
MIN_SERIAL
- the smallest legal serial, 2^48, which is entry 0 of log 1 (log number 0 is not used). |
| Constructor Summary | |
MTCCertificationAuthority(AlgorithmIdentifier sigAlg,
java.math.BigInteger minSerial,
java.math.BigInteger maxSerial)
|
|
MTCCertificationAuthority(ASN1ObjectIdentifier sigAlgOid,
java.math.BigInteger minSerial,
java.math.BigInteger maxSerial)
Convenience constructor that wraps the algorithm OID in a parameterless AlgorithmIdentifier. |
|
| Method Summary | |
static MTCCertificationAuthority |
getInstance(java.lang.Object obj)
|
java.math.BigInteger |
getMaxSerial()
|
java.math.BigInteger |
getMinSerial()
|
AlgorithmIdentifier |
getSigAlg()
|
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding. |
| Methods inherited from class org.bouncycastle.asn1.ASN1Object |
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.math.BigInteger MIN_SERIAL
public static final java.math.BigInteger MAX_SERIAL
| Constructor Detail |
public MTCCertificationAuthority(ASN1ObjectIdentifier sigAlgOid,
java.math.BigInteger minSerial,
java.math.BigInteger maxSerial)
AlgorithmIdentifier. Equivalent to
MTCCertificationAuthority(AlgorithmIdentifier, BigInteger, BigInteger)
with .
public MTCCertificationAuthority(AlgorithmIdentifier sigAlg,
java.math.BigInteger minSerial,
java.math.BigInteger maxSerial)
| Method Detail |
public static MTCCertificationAuthority getInstance(java.lang.Object obj)
public AlgorithmIdentifier getSigAlg()
public java.math.BigInteger getMinSerial()
public java.math.BigInteger getMaxSerial()
public ASN1Primitive toASN1Primitive()
ASN1Object
toASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object
|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||