org.gudy.bouncycastle.openssl
Class PEMReader
java.lang.Object
java.io.Reader
java.io.BufferedReader
org.gudy.bouncycastle.openssl.PEMReader
- All Implemented Interfaces:
- java.io.Closeable, java.lang.Readable
public class PEMReader
- extends java.io.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.
Fields inherited from class java.io.Reader |
lock |
Constructor Summary |
PEMReader(java.io.Reader reader)
Create a new PEMReader |
PEMReader(java.io.Reader reader,
PasswordFinder pFinder)
Create a new PEMReader with a password finder |
PEMReader(java.io.Reader reader,
PasswordFinder pFinder,
java.lang.String provider)
Create a new PEMReader with a password finder |
Methods inherited from class java.io.BufferedReader |
close, mark, markSupported, read, read, readLine, ready, reset, skip |
Methods inherited from class java.io.Reader |
read, read |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PEMReader
public PEMReader(java.io.Reader reader)
- Create a new PEMReader
- Parameters:
reader
- the Reader
PEMReader
public PEMReader(java.io.Reader reader,
PasswordFinder pFinder)
- Create a new PEMReader with a password finder
- Parameters:
reader
- the ReaderpFinder
- the password finder
PEMReader
public PEMReader(java.io.Reader reader,
PasswordFinder pFinder,
java.lang.String provider)
- Create a new PEMReader with a password finder
- Parameters:
reader
- the ReaderpFinder
- the password finderprovider
- the cryptography provider to use
readObject
public java.lang.Object readObject()
throws java.io.IOException
- Throws:
java.io.IOException