org.bouncycastle.ocsp

Class CertificateID


public class CertificateID
extends java.lang.Object

Field Summary

static String
HASH_SHA1

Constructor Summary

CertificateID(String hashAlgorithm, X509Certificate issuerCert, BigInteger number)
create using the BC provider
CertificateID(String hashAlgorithm, X509Certificate issuerCert, BigInteger number, String provider)
create from an issuer certificate and the serial number of the certificate it signed.
CertificateID(CertID id)

Method Summary

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()
CertID
toASN1Object()

Field Details

HASH_SHA1

public static String HASH_SHA1

Constructor Details

CertificateID

public CertificateID(String hashAlgorithm,
                     X509Certificate issuerCert,
                     BigInteger number)
            throws OCSPException
create using the BC provider

CertificateID

public CertificateID(String hashAlgorithm,
                     X509Certificate issuerCert,
                     BigInteger number,
                     String provider)
            throws OCSPException
create from an issuer certificate and the serial number of the certificate it signed.
Throws:
OCSPException - if any problems occur creating the id fields.

CertificateID

public CertificateID(CertID id)

Method Details

equals

public boolean equals(Object o)

getHashAlgOID

public String getHashAlgOID()

getIssuerKeyHash

public byte[] getIssuerKeyHash()

getIssuerNameHash

public byte[] getIssuerNameHash()

getSerialNumber

public BigInteger getSerialNumber()
return the serial number for the certificate associated with this request.

hashCode

public int hashCode()

toASN1Object

public CertID toASN1Object()