Class CertificateIDBC

java.lang.Object
com.itextpdf.bouncycastle.cert.ocsp.CertificateIDBC
All Implemented Interfaces:
ICertificateID

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

    • CertificateIDBC

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

      public CertificateIDBC (IDigestCalculator digestCalculator, IX509CertificateHolder certificateHolder, BigInteger bigInteger) throws OCSPExceptionBC
      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:
      OCSPExceptionBC - if OCSPException occurs during CertificateID instance creation.
  • Method Details

    • getInstance

      public static CertificateIDBC 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

      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 OCSPExceptionBC
      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:
      OCSPExceptionBC
    • 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