Class PEMParserBCFips

java.lang.Object
com.itextpdf.bouncycastlefips.openssl.PEMParserBCFips
All Implemented Interfaces:
IPEMParser, Closeable, AutoCloseable

public class PEMParserBCFips extends Object implements IPEMParser
Wrapper class for PEMParser.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PEMParserBCFips(org.bouncycastle.openssl.PEMParser parser)
    Creates new wrapper instance for PEMParser.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close()
    Delegates close method call to the wrapped parser.
    boolean
    Indicates whether some other object is "equal to" this one.
    org.bouncycastle.openssl.PEMParser
    Gets actual org.bouncycastle object being wrapped.
    int
    Returns a hash code value based on the wrapped object.
    Calls actual readObject method for the wrapped PEMParser object.
    Delegates toString method call to the wrapped object.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PEMParserBCFips

      public PEMParserBCFips (org.bouncycastle.openssl.PEMParser parser)
      Creates new wrapper instance for PEMParser.
      Parameters:
      parser - PEMParser to be wrapped
  • Method Details

    • getParser

      public org.bouncycastle.openssl.PEMParser getParser()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped PEMParser.
    • readObject

      public Object readObject() throws IOException
      Calls actual readObject method for the wrapped PEMParser object.
      Specified by:
      readObject in interface IPEMParser
      Returns:
      Object which represents read object.
      Throws:
      IOException - in case of issues with file.
    • close

      public void close() throws IOException
      Delegates close method call to the wrapped parser.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • 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