Class PEMReader

java.lang.Object
java.io.Reader
java.io.BufferedReader
org.gudy.bouncycastle.openssl.PEMReader
All Implemented Interfaces:
Closeable, AutoCloseable, Readable

public class PEMReader extends BufferedReader
Class for reading OpenSSL PEM encoded streams containing X509 certificates, PKCS8 encoded keys and PKCS7 objects.

In the case of PKCS7 objects the reader will return a CMS ContentInfo object. Keys and Certificates will be returned using the appropriate java.security type.