public class

PEMReader

extends PemReader
java.lang.Object
   ↳ java.io.Reader
     ↳ java.io.BufferedReader
       ↳ org.bouncycastle.util.io.pem.PemReader
         ↳ org.bouncycastle.openssl.PEMReader

Class Overview

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 (KeyPair, PublicKey, X509Certificate, or X509CRL). In the case of a Certificate Request a PKCS10CertificationRequest will be returned.

Summary

[Expand]
Inherited Fields
From class java.io.Reader
Public Constructors
PEMReader(Reader reader)
Create a new PEMReader
PEMReader(Reader reader, PasswordFinder pFinder)
Create a new PEMReader with a password finder
PEMReader(Reader reader, PasswordFinder pFinder, String provider)
Create a new PEMReader with a password finder
PEMReader(Reader reader, PasswordFinder pFinder, String symProvider, String asymProvider)
Create a new PEMReader with a password finder and differing providers for secret and public key operations.
Public Methods
Object readObject()
[Expand]
Inherited Methods
From class org.bouncycastle.util.io.pem.PemReader
From class java.io.BufferedReader
From class java.io.Reader
From class java.lang.Object
From interface java.io.Closeable
From interface java.lang.Readable

Public Constructors

public PEMReader (Reader reader)

Create a new PEMReader

Parameters
reader the Reader

public PEMReader (Reader reader, PasswordFinder pFinder)

Create a new PEMReader with a password finder

Parameters
reader the Reader
pFinder the password finder

public PEMReader (Reader reader, PasswordFinder pFinder, String provider)

Create a new PEMReader with a password finder

Parameters
reader the Reader
pFinder the password finder
provider the cryptography provider to use

public PEMReader (Reader reader, PasswordFinder pFinder, String symProvider, String asymProvider)

Create a new PEMReader with a password finder and differing providers for secret and public key operations.

Parameters
reader the Reader
pFinder the password finder
symProvider provider to use for symmetric operations
asymProvider provider to use for asymmetric (public/private key) operations

Public Methods

public Object readObject ()

Throws
IOException