public class CertificateID
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.bouncycastle.asn1.x509.AlgorithmIdentifier |
HASH_SHA1 |
Constructor and Description |
---|
CertificateID(org.bouncycastle.asn1.ocsp.CertID id) |
CertificateID(DigestCalculator digestCalculator,
X509CertificateHolder issuerCert,
java.math.BigInteger number)
create from an issuer certificate and the serial number of the
certificate it signed.
|
Modifier and Type | Method and Description |
---|---|
static CertificateID |
deriveCertificateID(CertificateID original,
java.math.BigInteger newSerialNumber)
Create a new CertificateID for a new serial number derived from a previous one
calculated for the same CA certificate.
|
boolean |
equals(java.lang.Object o) |
org.bouncycastle.asn1.ASN1ObjectIdentifier |
getHashAlgOID() |
byte[] |
getIssuerKeyHash() |
byte[] |
getIssuerNameHash() |
java.math.BigInteger |
getSerialNumber()
return the serial number for the certificate associated
with this request.
|
int |
hashCode() |
boolean |
matchesIssuer(X509CertificateHolder issuerCert,
DigestCalculatorProvider digCalcProvider) |
org.bouncycastle.asn1.ocsp.CertID |
toASN1Primitive() |
public CertificateID(org.bouncycastle.asn1.ocsp.CertID id)
public CertificateID(DigestCalculator digestCalculator, X509CertificateHolder issuerCert, java.math.BigInteger number) throws OCSPException
issuerCert
- issuing certificatenumber
- serial numberOCSPException
- if any problems occur creating the id fields.public org.bouncycastle.asn1.ASN1ObjectIdentifier getHashAlgOID()
public byte[] getIssuerNameHash()
public byte[] getIssuerKeyHash()
public java.math.BigInteger getSerialNumber()
public boolean matchesIssuer(X509CertificateHolder issuerCert, DigestCalculatorProvider digCalcProvider) throws OCSPException
OCSPException
public org.bouncycastle.asn1.ocsp.CertID toASN1Primitive()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static CertificateID deriveCertificateID(CertificateID original, java.math.BigInteger newSerialNumber)
original
- the previously calculated CertificateID for the CA.newSerialNumber
- the serial number for the new certificate of interest.