public class CertificateID extends Object
Constructor and Description |
---|
CertificateID(CertID id) |
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
public static final String HASH_SHA1
public CertificateID(CertID id)
public CertificateID(String hashAlgorithm, X509Certificate issuerCert, BigInteger number, String provider) throws OCSPException
hashAlgorithm
- hash algorithm to useissuerCert
- issuing certificatenumber
- serial numberprovider
- provider to use for hashAlgorithm, null if the default one should be used.OCSPException
- if any problems occur creating the id fields.public CertificateID(String hashAlgorithm, X509Certificate issuerCert, BigInteger number) throws OCSPException
OCSPException
public String getHashAlgOID()
public byte[] getIssuerNameHash()
public byte[] getIssuerKeyHash()
public BigInteger getSerialNumber()
public boolean matchesIssuer(X509Certificate issuerCert, String provider) throws OCSPException
OCSPException
public CertID toASN1Object()
public static CertificateID deriveCertificateID(CertificateID original, BigInteger newSerialNumber)
original
- the previously calculated CertificateID for the CA.newSerialNumber
- the serial number for the new certificate of interest.Copyright © 2015. All rights reserved.