Class CertificateIDBCFips

java.lang.Object
com.itextpdf.bouncycastlefips.cert.ocsp.CertificateIDBCFips
All Implemented Interfaces:
ICertificateID

public class CertificateIDBCFips extends Object implements ICertificateID
Wrapper class for CertificateID.
  • Constructor Details

    • CertificateIDBCFips

      public CertificateIDBCFips (org.bouncycastle.cert.ocsp.CertificateID certificateID)
      Creates new wrapper instance for CertificateID.
      Parameters:
      certificateID - CertificateID to be wrapped
    • CertificateIDBCFips

      public CertificateIDBCFips (IDigestCalculator digestCalculator, IX509CertificateHolder certificateHolder, BigInteger bigInteger) throws OCSPExceptionBCFips
      Creates new wrapper instance for CertificateID.
      Parameters:
      digestCalculator - DigestCalculator wrapper to create CertificateID
      certificateHolder - X509CertificateHolder wrapper to create CertificateID
      bigInteger - BigInteger to create CertificateID
      Throws:
      OCSPExceptionBCFips - if OCSPException occurs during CertificateID instance creation.
  • Method Details

    • getInstance

      public static CertificateIDBCFips getInstance()
      Gets wrapper instance.
      Returns:
      CertificateIDBCFips instance.
    • getCertificateID

      public org.bouncycastle.cert.ocsp.CertificateID getCertificateID()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped CertificateID.
    • getHashAlgOID

      public IASN1ObjectIdentifier getHashAlgOID()
      Calls actual getHashAlgOID method for the wrapped CertificateID object.
      Specified by:
      getHashAlgOID in interface ICertificateID
      Returns:
      IASN1ObjectIdentifier hash algorithm OID wrapper.
    • getHashSha1

      public IAlgorithmIdentifier getHashSha1()
      Gets getHashSha1 constant for the wrapped CertificateID.
      Specified by:
      getHashSha1 in interface ICertificateID
      Returns:
      CertificateID.HASH_SHA1 wrapper.
    • matchesIssuer

      public boolean matchesIssuer (IX509CertificateHolder certificateHolder, IDigestCalculatorProvider provider) throws OCSPExceptionBCFips
      Calls actual matchesIssuer method for the wrapped CertificateID object.
      Specified by:
      matchesIssuer in interface ICertificateID
      Parameters:
      certificateHolder - X509CertificateHolder wrapper
      provider - DigestCalculatorProvider wrapper
      Returns:
      boolean value.
      Throws:
      OCSPExceptionBCFips
    • getSerialNumber

      public BigInteger getSerialNumber()
      Calls actual getSerialNumber method for the wrapped CertificateID object.
      Specified by:
      getSerialNumber in interface ICertificateID
      Returns:
      serial number value.
    • equals

      public boolean equals (Object o)
      Indicates whether some other object is "equal to" this one. Compares wrapped objects.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Returns a hash code value based on the wrapped object.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Delegates toString method call to the wrapped object.
      Overrides:
      toString in class Object