org.bouncycastle.ocsp

Class CertificateID

public class CertificateID extends Object

Field Summary
static StringHASH_SHA1
Constructor Summary
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
Method Summary
booleanequals(Object o)
StringgetHashAlgOID()
byte[]getIssuerKeyHash()
byte[]getIssuerNameHash()
BigIntegergetSerialNumber()
return the serial number for the certificate associated with this request.
inthashCode()
CertIDtoASN1Object()

Field Detail

HASH_SHA1

public static final String HASH_SHA1

Constructor Detail

CertificateID

public CertificateID(CertID id)

CertificateID

public CertificateID(String hashAlgorithm, X509Certificate issuerCert, BigInteger number, String provider)
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(String hashAlgorithm, X509Certificate issuerCert, BigInteger number)
create using the BC provider

Method Detail

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