Class PEMParserBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.openssl.PEMParserBC
-
- All Implemented Interfaces:
IPEMParser,java.io.Closeable,java.lang.AutoCloseable
public class PEMParserBC extends java.lang.Object implements IPEMParser
Wrapper class forPEMParser.
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.openssl.PEMParserparser
-
Constructor Summary
Constructors Constructor Description PEMParserBC(org.bouncycastle.openssl.PEMParser parser)Creates new wrapper instance forPEMParser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Delegatesclosemethod call to the wrapped parser.booleanequals(java.lang.Object o)Indicates whether some other object is "equal to" this one.org.bouncycastle.openssl.PEMParsergetParser()Gets actual org.bouncycastle object being wrapped.inthashCode()Returns a hash code value based on the wrapped object.java.lang.ObjectreadObject()Calls actualreadObjectmethod for the wrapped PEMParser object.java.lang.StringtoString()DelegatestoStringmethod call to the wrapped object.
-
-
-
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.IOExceptionCalls actualreadObjectmethod for the wrapped PEMParser object.- Specified by:
readObjectin interfaceIPEMParser- Returns:
Objectwhich represents read object.- Throws:
java.io.IOException- in case of issues with file.
-
close
public void close() throws java.io.IOExceptionDelegatesclosemethod call to the wrapped parser.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Returns a hash code value based on the wrapped object.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
DelegatestoStringmethod call to the wrapped object.- Overrides:
toStringin classjava.lang.Object
-
-