Class X509CertificateHolderBCFips

java.lang.Object
com.itextpdf.bouncycastlefips.cert.X509CertificateHolderBCFips
All Implemented Interfaces:
IX509CertificateHolder
Direct Known Subclasses:
JcaX509CertificateHolderBCFips

public class X509CertificateHolderBCFips extends Object implements IX509CertificateHolder
Wrapper class for X509CertificateHolder.
  • Constructor Details

    • X509CertificateHolderBCFips

      public X509CertificateHolderBCFips (org.bouncycastle.cert.X509CertificateHolder certificateHolder)
      Creates new wrapper instance for X509CertificateHolder.
      Parameters:
      certificateHolder - X509CertificateHolder to be wrapped
    • X509CertificateHolderBCFips

      public X509CertificateHolderBCFips (byte[] bytes) throws IOException
      Creates new wrapper instance for X509CertificateHolder.
      Parameters:
      bytes - bytes array to create X509CertificateHolder to be wrapped
      Throws:
      IOException - X509CertificateHolder object cannot be created from byte array.
  • Method Details

    • getCertificateHolder

      public org.bouncycastle.cert.X509CertificateHolder getCertificateHolder()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped X509CertificateHolder.
    • getSignatureAlgorithm

      public IAlgorithmIdentifier getSignatureAlgorithm()
      Retrieves signature algorithm identifier from the certificate.
      Specified by:
      getSignatureAlgorithm in interface IX509CertificateHolder
      Returns:
      signature algorithm.
    • 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