Top Description Inners Fields Constructors Methods
org.bouncycastle.openssl

public Class PEMParser

extends PemReader
Class Inheritance
Imports
java.io.IOException, .Reader, java.util.Collections, .HashMap, .Iterator, .List, .Map, .Set, .StringTokenizer, org.bouncycastle.asn1.ASN1InputStream, .ASN1Integer, .ASN1ObjectIdentifier, .ASN1Primitive, .ASN1Sequence, .DERNull, org.bouncycastle.asn1.cms.ContentInfo, org.bouncycastle.asn1.pkcs.EncryptedPrivateKeyInfo, .PKCSObjectIdentifiers, .PrivateKeyInfo, .RSAPublicKey, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .DSAParameter, .SubjectPublicKeyInfo, org.bouncycastle.asn1.x9.X9ECParameters, .X9ObjectIdentifiers, org.bouncycastle.cert.X509AttributeCertificateHolder, .X509CRLHolder, .X509CertificateHolder, org.bouncycastle.pkcs.PKCS10CertificationRequest, .PKCS8EncryptedPrivateKeyInfo, org.bouncycastle.util.encoders.Hex, org.bouncycastle.util.io.pem.PemHeader, .PemObject, .PemObjectParser, .PemReader

Class for parsing 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. Public keys will be returned as well formed SubjectPublicKeyInfo objects, private keys will be returned as well formed PrivateKeyInfo objects. In the case of a private key a PEMKeyPair will normally be returned if the encoding contains both the private and public key definition. CRLs, Certificates, PKCS#10 requests, and Attribute Certificates will generate the appropriate BC holder class.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
protected final Map<K, V>
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String

Constructor Summary

AccessConstructor and Description
public
PEMParser(Reader
the Reader
reader
)

Create a new PEMReader

Method Summary

Modifier and TypeMethod and Description
public Set<String>

Returns:

set of pem object types that can be parsed
getSupportedTypes
()

public Object

Returns:

the next object in the stream, null if no objects left.
readObject
()

Read the next PEM object attempting to interpret the header and create a higher level object from the content.

Inherited from org.bouncycastle.util.io.pem.PemReader:
readPemObject