public class PEMParser extends PemReader
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.
Constructor and Description |
---|
PEMParser(Reader reader)
Create a new PEMReader
|
Modifier and Type | Method and Description |
---|---|
Object |
readObject()
Read the next PEM object attempting to interpret the header and
create a higher level object from the content.
|
readPemObject
public PEMParser(Reader reader)
reader
- the Readerpublic Object readObject() throws IOException
IOException
- in case of a parse error.Copyright © 2018 BouncyCastle.org. All rights reserved.