Class CertificateIDBCFips
java.lang.Object
com.itextpdf.bouncycastlefips.cert.ocsp.CertificateIDBCFips
- All Implemented Interfaces:
-
ICertificateID
Wrapper class for
CertificateID.
-
Constructor Summary
ConstructorsConstructorDescriptionCertificateIDBCFips(IDigestCalculator digestCalculator, IX509CertificateHolder certificateHolder, BigInteger bigInteger) Creates new wrapper instance forCertificateID.CertificateIDBCFips(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 CertificateIDBCFipsGets 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.
-
Constructor Details
-
CertificateIDBCFips
public CertificateIDBCFips(org.bouncycastle.cert.ocsp.CertificateID certificateID) Creates new wrapper instance forCertificateID.- Parameters:
-
certificateID-CertificateIDto be wrapped
-
CertificateIDBCFips
public CertificateIDBCFips(IDigestCalculator digestCalculator, IX509CertificateHolder certificateHolder, BigInteger bigInteger) throws OCSPExceptionBCFips Creates new wrapper instance forCertificateID.- Parameters:
-
digestCalculator- DigestCalculator wrapper to createCertificateID -
certificateHolder- X509CertificateHolder wrapper to createCertificateID -
bigInteger- BigInteger to createCertificateID - Throws:
-
OCSPExceptionBCFips- ifOCSPExceptionoccurs duringCertificateIDinstance creation.
-
-
Method Details
-
getInstance
Gets wrapper instance.- Returns:
-
CertificateIDBCFipsinstance.
-
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 OCSPExceptionBCFips Calls actualmatchesIssuermethod for the wrapped CertificateID object.- Specified by:
-
matchesIssuerin interfaceICertificateID - Parameters:
-
certificateHolder- X509CertificateHolder wrapper -
provider- DigestCalculatorProvider wrapper - Returns:
- boolean value.
- Throws:
-
OCSPExceptionBCFips
-
getSerialNumber
Calls actualgetSerialNumbermethod for the wrapped CertificateID object.- Specified by:
-
getSerialNumberin 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
DelegatestoStringmethod call to the wrapped object.
-