Class FlexiblePEMReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.BufferedReader
-
- org.bouncycastle.util.io.pem.PemReader
-
- org.bouncycastle.openssl.PEMParser
-
- eu.emi.security.authn.x509.helpers.FlexiblePEMReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
public class FlexiblePEMReader extends org.bouncycastle.openssl.PEMParserExtends BC'sPEMParserclass so it can read correctly also PEM files with a garbage at the beginning and minor syntax violations which occur more then often in the wild. TODO - probably we can remove this class - BC seems to be fixed.- Author:
- K. Benedyczak
-
-
Constructor Summary
Constructors Constructor Description FlexiblePEMReader(Reader reader)Creates a newFlexiblePEMReaderobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.util.io.pem.PemObjectreadPemObject()Generate BC's PemObject
-
-
-
Constructor Detail
-
FlexiblePEMReader
public FlexiblePEMReader(Reader reader)
Creates a newFlexiblePEMReaderobject.- Parameters:
reader- input source
-
-
Method Detail
-
readPemObject
public org.bouncycastle.util.io.pem.PemObject readPemObject() throws IOExceptionGenerate BC's PemObject- Overrides:
readPemObjectin classorg.bouncycastle.util.io.pem.PemReader- Returns:
- the parsed PEM object
- Throws:
IOException- IO exception
-
-