org.bouncycastle.openssl
Class PEMReader
BufferedReader
org.bouncycastle.openssl.PEMReader
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.
PEMReader
public PEMReader(Reader reader)
Create a new PEMReader
PEMReader
public PEMReader(Reader reader,
PasswordFinder pFinder)
Create a new PEMReader with a password finder
reader
- the ReaderpFinder
- the password finder
PEMReader
public PEMReader(Reader reader,
PasswordFinder pFinder,
String provider)
Create a new PEMReader with a password finder
reader
- the ReaderpFinder
- the password finderprovider
- the cryptography provider to use
readObject
public Object readObject()
throws IOException