public class PEMReader extends PemReader
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.
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
Object |
readObject() |
readPemObject
public PEMReader(Reader reader)
reader
- the Readerpublic PEMReader(Reader reader, PasswordFinder pFinder)
reader
- the ReaderpFinder
- the password finderpublic PEMReader(Reader reader, PasswordFinder pFinder, String provider)
reader
- the ReaderpFinder
- the password finderprovider
- the cryptography provider to usepublic PEMReader(Reader reader, PasswordFinder pFinder, String symProvider, String asymProvider)
reader
- the ReaderpFinder
- the password findersymProvider
- provider to use for symmetric operationsasymProvider
- provider to use for asymmetric (public/private key) operationspublic Object readObject() throws IOException
IOException
Copyright © 2015. All rights reserved.