public class

CertificateID

extends Object
java.lang.Object
   ↳ org.bouncycastle.cert.ocsp.CertificateID
Known Direct Subclasses

Summary

Fields
public static final AlgorithmIdentifier HASH_SHA1
Public Constructors
CertificateID(CertID id)
CertificateID(DigestCalculator digestCalculator, X509CertificateHolder issuerCert, BigInteger number)
create from an issuer certificate and the serial number of the certificate it signed.
Public Methods
static CertificateID deriveCertificateID(CertificateID original, BigInteger newSerialNumber)
Create a new CertificateID for a new serial number derived from a previous one calculated for the same CA certificate.
boolean equals(Object o)
ASN1ObjectIdentifier getHashAlgOID()
byte[] getIssuerKeyHash()
byte[] getIssuerNameHash()
BigInteger getSerialNumber()
return the serial number for the certificate associated with this request.
int hashCode()
boolean matchesIssuer(X509CertificateHolder issuerCert, DigestCalculatorProvider digCalcProvider)
CertID toASN1Object()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final AlgorithmIdentifier HASH_SHA1

Public Constructors

public CertificateID (CertID id)

public CertificateID (DigestCalculator digestCalculator, X509CertificateHolder issuerCert, BigInteger number)

create from an issuer certificate and the serial number of the certificate it signed.

Parameters
issuerCert issuing certificate
number serial number
Throws
OCSPException if any problems occur creating the id fields.

Public Methods

public static CertificateID deriveCertificateID (CertificateID original, BigInteger newSerialNumber)

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

public boolean equals (Object o)

public ASN1ObjectIdentifier getHashAlgOID ()

public byte[] getIssuerKeyHash ()

public byte[] getIssuerNameHash ()

public BigInteger getSerialNumber ()

return the serial number for the certificate associated with this request.

public int hashCode ()

public boolean matchesIssuer (X509CertificateHolder issuerCert, DigestCalculatorProvider digCalcProvider)

Throws
OCSPException

public CertID toASN1Object ()