public class MTCCertAuth
extends java.lang.Object
logId(long) — the issuance log's binary trust anchor IDissuerName() — the X.500 Name used in the cert's issuer fieldcertSerial(long, long) — a packed (log_number, index)
cert serial#authorityInfo(BigInteger) — the MTCCertificationAuthority
extension value the relying party needs out-of-bandIdentity-only: the CA's signing keypair stays separate so the same
MTCCertAuth can be shared between an issuer (which holds the private
key for cosigning) and a relying party (which holds the matching public key
for verification).
| Constructor and Description |
|---|
MTCCertAuth(byte[] caId,
MerkleTreeHash hashFunc,
org.bouncycastle.asn1.ASN1ObjectIdentifier sigAlgOid) |
MTCCertAuth(java.lang.String dottedCaId,
MerkleTreeHash hashFunc,
org.bouncycastle.asn1.ASN1ObjectIdentifier sigAlgOid) |
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.asn1.x509.MTCCertificationAuthority |
authorityInfo(java.math.BigInteger minSerial,
java.math.BigInteger maxSerial)
Builds the
MTCCertificationAuthority extension value that the
relying party needs to validate certs from this CA. |
java.math.BigInteger |
certSerial(long logNumber,
long index) |
java.math.BigInteger |
certSerial(MTCLog log,
long index)
Equivalent to
certSerial(long, long) with the log number taken
from log.getLogNumber(). |
byte[] |
getCaId() |
java.lang.String |
getDottedCaId() |
MerkleTreeHash |
getHashFunc() |
org.bouncycastle.asn1.x500.X500Name |
issuerName() |
byte[] |
logId(long logNumber) |
public MTCCertAuth(java.lang.String dottedCaId,
MerkleTreeHash hashFunc,
org.bouncycastle.asn1.ASN1ObjectIdentifier sigAlgOid)
dottedCaId - dotted-decimal form of the CA's trust anchor ID
(e.g. "32473.1")hashFunc - hash function used by all issuance logs operated by
this CA (Section 5.5) — its
algorithm identifier is published in the CA's
logHashsigAlgOid - CA cosigner's signature algorithm (Section 5.5)public MTCCertAuth(byte[] caId,
MerkleTreeHash hashFunc,
org.bouncycastle.asn1.ASN1ObjectIdentifier sigAlgOid)
caId - binary form of the CA's trust anchor IDhashFunc - hash function used by all issuance logs operated by
this CA (Section 5.5)sigAlgOid - CA cosigner's signature algorithm (Section 5.5)public byte[] getCaId()
public java.lang.String getDottedCaId()
public MerkleTreeHash getHashFunc()
public byte[] logId(long logNumber)
logNumber - log number (1 <= logNumber <= 2^16-1, Section 5.2)logNumber
operated by this CApublic org.bouncycastle.asn1.x500.X500Name issuerName()
X500Name for certs issued by this CA, carrying
the trust anchor ID via the experimental
id_rdna_trustAnchorID attributepublic java.math.BigInteger certSerial(long logNumber,
long index)
logNumber - log number (1 <= logNumber <= 2^16-1)index - entry index in the log (0 <= index <= 2^48-1)public java.math.BigInteger certSerial(MTCLog log, long index)
certSerial(long, long) with the log number taken
from log.getLogNumber().public org.bouncycastle.asn1.x509.MTCCertificationAuthority authorityInfo(java.math.BigInteger minSerial,
java.math.BigInteger maxSerial)
MTCCertificationAuthority extension value that the
relying party needs to validate certs from this CA. Combines the CA's
log hash and cosigner signature algorithm with the supplied serial range.minSerial - minimum allowed cert serial from this CA (Section 5.5 / 6.1)maxSerial - maximum allowed cert serial from this CA (Section 5.5 / 6.1)