Class CertificateIDBC
java.lang.Object
com.itextpdf.bouncycastle.cert.ocsp.CertificateIDBC
- All Implemented Interfaces:
-
ICertificateID
Wrapper class for
CertificateID
.
-
Constructor Summary
ConstructorDescriptionCertificateIDBC
(IDigestCalculator digestCalculator, IX509CertificateHolder certificateHolder, BigInteger bigInteger) Creates new wrapper instance forCertificateID
.CertificateIDBC
(org.bouncycastle.cert.ocsp.CertificateID certificateID) Creates new wrapper instance forCertificateID
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.org.bouncycastle.cert.ocsp.CertificateID
Gets actual org.bouncycastle object being wrapped.Calls actualgetHashAlgOID
method for the wrapped CertificateID object.GetsgetHashSha1
constant for the wrapped CertificateID.static CertificateIDBC
Gets wrapper instance.Calls actualgetSerialNumber
method for the wrapped CertificateID object.int
hashCode()
Returns a hash code value based on the wrapped object.boolean
matchesIssuer
(IX509CertificateHolder certificateHolder, IDigestCalculatorProvider provider) Calls actualmatchesIssuer
method for the wrapped CertificateID object.toString()
DelegatestoString
method call to the wrapped object.
-
Constructor Details
-
CertificateIDBC
public CertificateIDBC(org.bouncycastle.cert.ocsp.CertificateID certificateID) Creates new wrapper instance forCertificateID
.- Parameters:
-
certificateID
-CertificateID
to be wrapped
-
CertificateIDBC
public CertificateIDBC(IDigestCalculator digestCalculator, IX509CertificateHolder certificateHolder, BigInteger bigInteger) throws OCSPExceptionBC Creates new wrapper instance forCertificateID
.- Parameters:
-
digestCalculator
- DigestCalculator wrapper to createCertificateID
-
certificateHolder
- X509CertificateHolder wrapper to createCertificateID
-
bigInteger
- BigInteger to createCertificateID
- Throws:
-
OCSPExceptionBC
- ifOCSPException
occurs duringCertificateID
instance creation.
-
-
Method Details
-
getInstance
Gets wrapper instance.- Returns:
-
CertificateIDBC
instance.
-
getCertificateID
public org.bouncycastle.cert.ocsp.CertificateID getCertificateID()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
CertificateID
.
-
getHashAlgOID
Calls actualgetHashAlgOID
method for the wrapped CertificateID object.- Specified by:
-
getHashAlgOID
in interfaceICertificateID
- Returns:
-
IASN1ObjectIdentifier
hash algorithm OID wrapper.
-
getHashSha1
GetsgetHashSha1
constant for the wrapped CertificateID.- Specified by:
-
getHashSha1
in interfaceICertificateID
- Returns:
- CertificateID.HASH_SHA1 wrapper.
-
matchesIssuer
public boolean matchesIssuer(IX509CertificateHolder certificateHolder, IDigestCalculatorProvider provider) throws OCSPExceptionBC Calls actualmatchesIssuer
method for the wrapped CertificateID object.- Specified by:
-
matchesIssuer
in interfaceICertificateID
- Parameters:
-
certificateHolder
- X509CertificateHolder wrapper -
provider
- DigestCalculatorProvider wrapper - Returns:
- boolean value.
- Throws:
-
OCSPExceptionBC
-
getSerialNumber
Calls actualgetSerialNumber
method for the wrapped CertificateID object.- Specified by:
-
getSerialNumber
in interfaceICertificateID
- Returns:
- serial number value.
-
equals
Indicates whether some other object is "equal to" this one. Compares wrapped objects. -
hashCode
public int hashCode()Returns a hash code value based on the wrapped object. -
toString
DelegatestoString
method call to the wrapped object.
-