Class CertificateID
java.lang.Object
org.bouncycastle.cert.ocsp.CertificateID
- Direct Known Subclasses:
JcaCertificateID
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.bouncycastle.asn1.x509.AlgorithmIdentifier -
Constructor Summary
ConstructorsConstructorDescriptionCertificateID(org.bouncycastle.asn1.ocsp.CertID id) CertificateID(DigestCalculator digestCalculator, X509CertificateHolder issuerCert, BigInteger number) create from an issuer certificate and the serial number of the certificate it signed. -
Method Summary
Modifier and TypeMethodDescriptionstatic CertificateIDderiveCertificateID(CertificateID original, BigInteger newSerialNumber) Create a new CertificateID for a new serial number derived from a previous one calculated for the same CA certificate.booleanorg.bouncycastle.asn1.ASN1ObjectIdentifierbyte[]byte[]return the serial number for the certificate associated with this request.inthashCode()booleanmatchesIssuer(X509CertificateHolder issuerCert, DigestCalculatorProvider digCalcProvider) org.bouncycastle.asn1.ocsp.CertID
-
Field Details
-
HASH_SHA1
public static final org.bouncycastle.asn1.x509.AlgorithmIdentifier HASH_SHA1
-
-
Constructor Details
-
CertificateID
public CertificateID(org.bouncycastle.asn1.ocsp.CertID id) -
CertificateID
public CertificateID(DigestCalculator digestCalculator, X509CertificateHolder issuerCert, BigInteger number) throws OCSPException create from an issuer certificate and the serial number of the certificate it signed.- Parameters:
issuerCert- issuing certificatenumber- serial number- Throws:
OCSPException- if any problems occur creating the id fields.
-
-
Method Details
-
getHashAlgOID
public org.bouncycastle.asn1.ASN1ObjectIdentifier getHashAlgOID() -
getIssuerNameHash
public byte[] getIssuerNameHash() -
getIssuerKeyHash
public byte[] getIssuerKeyHash() -
getSerialNumber
return the serial number for the certificate associated with this request. -
matchesIssuer
public boolean matchesIssuer(X509CertificateHolder issuerCert, DigestCalculatorProvider digCalcProvider) throws OCSPException - Throws:
OCSPException
-
toASN1Primitive
public org.bouncycastle.asn1.ocsp.CertID toASN1Primitive() -
equals
-
hashCode
-
deriveCertificateID
Create a new CertificateID for a new serial number derived from a previous one calculated for the same CA certificate.- Parameters:
original- the previously calculated CertificateID for the CA.newSerialNumber- the serial number for the new certificate of interest.- Returns:
- a new CertificateID for newSerialNumber
-