public class

CertificateID

extends Object
java.lang.Object
   ↳ org.bouncycastle.ocsp.CertificateID

Summary

Constants
String HASH_SHA1
Public Constructors
CertificateID(CertID id)
CertificateID(String hashAlgorithm, X509Certificate issuerCert, BigInteger number, String provider)
create from an issuer certificate and the serial number of the certificate it signed.
CertificateID(String hashAlgorithm, X509Certificate issuerCert, BigInteger number)
create using the BC provider
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)
String getHashAlgOID()
byte[] getIssuerKeyHash()
byte[] getIssuerNameHash()
BigInteger getSerialNumber()
return the serial number for the certificate associated with this request.
int hashCode()
boolean matchesIssuer(X509Certificate issuerCert, String provider)
CertID toASN1Object()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String HASH_SHA1

Constant Value: "1.3.14.3.2.26"

Public Constructors

public CertificateID (CertID id)

public CertificateID (String hashAlgorithm, X509Certificate issuerCert, BigInteger number, String provider)

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

Parameters
hashAlgorithm hash algorithm to use
issuerCert issuing certificate
number serial number
provider provider to use for hashAlgorithm, null if the default one should be used.
Throws
OCSPException if any problems occur creating the id fields.

public CertificateID (String hashAlgorithm, X509Certificate issuerCert, BigInteger number)

create using the BC provider

Throws
OCSPException

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 String 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 (X509Certificate issuerCert, String provider)

Throws
OCSPException

public CertID toASN1Object ()