Class CertificateIDBC
java.lang.Object
com.itextpdf.bouncycastle.cert.ocsp.CertificateIDBC
- All Implemented Interfaces:
ICertificateID
Wrapper class for
CertificateID.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.bouncycastle.cert.ocsp.CertificateIDprivate static final AlgorithmIdentifierBCprivate static final CertificateIDBC -
Constructor Summary
ConstructorsConstructorDescriptionCertificateIDBC(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 TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.org.bouncycastle.cert.ocsp.CertificateIDGets actual org.bouncycastle object being wrapped.Calls actualgetHashAlgOIDmethod for the wrapped CertificateID object.GetsgetHashSha1constant for the wrapped CertificateID.static CertificateIDBCGets wrapper instance.Calls actualgetSerialNumbermethod for the wrapped CertificateID object.inthashCode()Returns a hash code value based on the wrapped object.booleanmatchesIssuer(IX509CertificateHolder certificateHolder, IDigestCalculatorProvider provider) Calls actualmatchesIssuermethod for the wrapped CertificateID object.toString()DelegatestoStringmethod call to the wrapped object.
-
Field Details
-
INSTANCE
-
HASH_SHA1
-
certificateID
private final org.bouncycastle.cert.ocsp.CertificateID certificateID
-
-
Constructor Details
-
CertificateIDBC
public CertificateIDBC(org.bouncycastle.cert.ocsp.CertificateID certificateID) Creates new wrapper instance forCertificateID.- Parameters:
certificateID-CertificateIDto be wrapped
-
CertificateIDBC
public CertificateIDBC(IDigestCalculator digestCalculator, IX509CertificateHolder certificateHolder, BigInteger bigInteger) throws OCSPExceptionBC Creates new wrapper instance forCertificateID.- Parameters:
digestCalculator- DigestCalculator wrapper to createCertificateIDcertificateHolder- X509CertificateHolder wrapper to createCertificateIDbigInteger- BigInteger to createCertificateID- Throws:
OCSPExceptionBC- ifOCSPExceptionoccurs duringCertificateIDinstance creation.
-
-
Method Details
-
getInstance
Gets wrapper instance.- Returns:
CertificateIDBCinstance.
-
getCertificateID
public org.bouncycastle.cert.ocsp.CertificateID getCertificateID()Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
CertificateID.
-
getHashAlgOID
Calls actualgetHashAlgOIDmethod for the wrapped CertificateID object.- Specified by:
getHashAlgOIDin interfaceICertificateID- Returns:
IASN1ObjectIdentifierhash algorithm OID wrapper.
-
getHashSha1
GetsgetHashSha1constant for the wrapped CertificateID.- Specified by:
getHashSha1in interfaceICertificateID- Returns:
- CertificateID.HASH_SHA1 wrapper.
-
matchesIssuer
public boolean matchesIssuer(IX509CertificateHolder certificateHolder, IDigestCalculatorProvider provider) throws OCSPExceptionBC Calls actualmatchesIssuermethod for the wrapped CertificateID object.- Specified by:
matchesIssuerin interfaceICertificateID- Parameters:
certificateHolder- X509CertificateHolder wrapperprovider- DigestCalculatorProvider wrapper- Returns:
- boolean value.
- Throws:
OCSPExceptionBC
-
getSerialNumber
Calls actualgetSerialNumbermethod for the wrapped CertificateID object.- Specified by:
getSerialNumberin interfaceICertificateID- Returns:
- serial number value.
-
equals
-
hashCode
-
toString
-