org.bouncycastle.ocsp
Class CertificateID
java.lang.Object
org.bouncycastle.ocsp.CertificateID
public class CertificateID
- extends java.lang.Object
Field Summary |
static java.lang.String |
HASH_SHA1
|
Constructor Summary |
CertificateID(CertID id)
|
CertificateID(java.lang.String hashAlgorithm,
java.security.cert.X509Certificate issuerCert,
java.math.BigInteger number)
create using the BC provider |
CertificateID(java.lang.String hashAlgorithm,
java.security.cert.X509Certificate issuerCert,
java.math.BigInteger number,
java.lang.String provider)
create from an issuer certificate and the serial number of the
certificate it signed. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
HASH_SHA1
public static final java.lang.String HASH_SHA1
- See Also:
- Constant Field Values
CertificateID
public CertificateID(CertID id)
CertificateID
public CertificateID(java.lang.String hashAlgorithm,
java.security.cert.X509Certificate issuerCert,
java.math.BigInteger number,
java.lang.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(java.lang.String hashAlgorithm,
java.security.cert.X509Certificate issuerCert,
java.math.BigInteger number)
throws OCSPException
- create using the BC provider
- Throws:
OCSPException
getHashAlgOID
public java.lang.String getHashAlgOID()
getIssuerNameHash
public byte[] getIssuerNameHash()
getIssuerKeyHash
public byte[] getIssuerKeyHash()
getSerialNumber
public java.math.BigInteger getSerialNumber()
- return the serial number for the certificate associated
with this request.
toASN1Object
public CertID toASN1Object()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object