Class PEMParserBC

  • All Implemented Interfaces:
    IPEMParser, java.io.Closeable, java.lang.AutoCloseable

    public class PEMParserBC
    extends java.lang.Object
    implements IPEMParser
    Wrapper class for PEMParser.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.bouncycastle.openssl.PEMParser parser  
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Delegates close method call to the wrapped parser.
      boolean equals​(java.lang.Object o)
      Indicates whether some other object is "equal to" this one.
      org.bouncycastle.openssl.PEMParser getParser()
      Gets actual org.bouncycastle object being wrapped.
      int hashCode()
      Returns a hash code value based on the wrapped object.
      java.lang.Object readObject()
      Calls actual readObject method for the wrapped PEMParser object.
      java.lang.String toString()
      Delegates toString method call to the wrapped object.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • parser

        private final org.bouncycastle.openssl.PEMParser parser
    • Constructor Detail

      • PEMParserBC

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

      • getParser

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

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

        public void close()
                   throws java.io.IOException
        Delegates close method call to the wrapped parser.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • equals

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

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

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