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.
| Modifier and Type | Class 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 |
| Modifier and Type | Field and Description |
|---|---|
| protected final Map | |
| 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 |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Set | |
| public Object | Returns: the next object in the stream, null if no objects left.Read the next PEM object attempting to interpret the header and create a higher level object from the content. |
| parsers | back to summary |
|---|---|
| protected final Map<K, V> parsers | |
| TYPE_ATTRIBUTE_CERTIFICATE | back to summary |
|---|---|
| public static final String TYPE_ATTRIBUTE_CERTIFICATE | |
| TYPE_CERTIFICATE | back to summary |
|---|---|
| public static final String TYPE_CERTIFICATE | |
| TYPE_CERTIFICATE_REQUEST | back to summary |
|---|---|
| public static final String TYPE_CERTIFICATE_REQUEST | |
| TYPE_CMS | back to summary |
|---|---|
| public static final String TYPE_CMS | |
| TYPE_DSA_PRIVATE_KEY | back to summary |
|---|---|
| public static final String TYPE_DSA_PRIVATE_KEY | |
| TYPE_EC_PARAMETERS | back to summary |
|---|---|
| public static final String TYPE_EC_PARAMETERS | |
| TYPE_EC_PRIVATE_KEY | back to summary |
|---|---|
| public static final String TYPE_EC_PRIVATE_KEY | |
| TYPE_ENCRYPTED_PRIVATE_KEY | back to summary |
|---|---|
| public static final String TYPE_ENCRYPTED_PRIVATE_KEY | |
| TYPE_NEW_CERTIFICATE_REQUEST | back to summary |
|---|---|
| public static final String TYPE_NEW_CERTIFICATE_REQUEST | |
| TYPE_PKCS7 | back to summary |
|---|---|
| public static final String TYPE_PKCS7 | |
| TYPE_PRIVATE_KEY | back to summary |
|---|---|
| public static final String TYPE_PRIVATE_KEY | |
| TYPE_PUBLIC_KEY | back to summary |
|---|---|
| public static final String TYPE_PUBLIC_KEY | |
| TYPE_RSA_PRIVATE_KEY | back to summary |
|---|---|
| public static final String TYPE_RSA_PRIVATE_KEY | |
| TYPE_RSA_PUBLIC_KEY | back to summary |
|---|---|
| public static final String TYPE_RSA_PUBLIC_KEY | |
| TYPE_TRUSTED_CERTIFICATE | back to summary |
|---|---|
| public static final String TYPE_TRUSTED_CERTIFICATE | |
| TYPE_X509_CERTIFICATE | back to summary |
|---|---|
| public static final String TYPE_X509_CERTIFICATE | |
| TYPE_X509_CRL | back to summary |
|---|---|
| public static final String TYPE_X509_CRL | |
| PEMParser | back to summary |
|---|---|
| public PEMParser(Reader reader) Create a new PEMReader
| |
| getSupportedTypes | back to summary |
|---|---|
public Set
| |
| readObject | back to summary |
|---|---|
| public Object readObject() throws IOException Read the next PEM object attempting to interpret the header and create a higher level object from the content.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public PEMKeyPair |
| DSAKeyPairParser | back to summary |
|---|---|
| private DSAKeyPairParser() | |
| parse | back to summary |
|---|---|
| public PEMKeyPair parse(byte[] encoding) throws IOException Implements org. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | parseObject(PemObject
the PEM object containing the details for the specific object. obj)Implements org. Parse an object out of the PEM object passed in. |
| ECCurveParamsParser | back to summary |
|---|---|
| private ECCurveParamsParser() | |
| parseObject | back to summary |
|---|---|
| public Object parseObject(PemObject obj) throws IOException Implements org. Doc from org. Parse an object out of the PEM object passed in.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public PEMKeyPair |
| ECDSAKeyPairParser | back to summary |
|---|---|
| private ECDSAKeyPairParser() | |
| parse | back to summary |
|---|---|
| public PEMKeyPair parse(byte[] encoding) throws IOException Implements org. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the X509Certificatethe PEM object containing the details for the specific object. obj)Implements org. Reads in an EncryptedPrivateKeyInfo |
| EncryptedPrivateKeyParser | back to summary |
|---|---|
| public EncryptedPrivateKeyParser() | |
| parseObject | back to summary |
|---|---|
| public Object parseObject(PemObject obj) throws IOException Implements org. Reads in an EncryptedPrivateKeyInfo
| |
| Modifier and Type | Field and Description |
|---|---|
| private final PEMKeyPairParser |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | parseObject(PemObject
the PEM object containing the details for the specific object. obj)Implements org. Read a Key Pair |
| pemKeyPairParser | back to summary |
|---|---|
| private final PEMKeyPairParser pemKeyPairParser | |
| KeyPairParser | back to summary |
|---|---|
| public KeyPairParser(PEMKeyPairParser pemKeyPairParser) | |
| parseObject | back to summary |
|---|---|
| public Object parseObject(PemObject obj) throws IOException Implements org. Read a Key Pair
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the certificate request.the PEM object containing the details for the specific object. obj)Implements org. Reads in a PKCS10 certification request. |
| PKCS10CertificationRequestParser | back to summary |
|---|---|
| private PKCS10CertificationRequestParser() | |
| parseObject | back to summary |
|---|---|
| public Object parseObject(PemObject obj) throws IOException Implements org. Reads in a PKCS10 certification request.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the X509Certificatethe PEM object containing the details for the specific object. obj)Implements org. Reads in a PKCS7 object. |
| PKCS7Parser | back to summary |
|---|---|
| private PKCS7Parser() | |
| parseObject | back to summary |
|---|---|
| public Object parseObject(PemObject obj) throws IOException Implements org. Reads in a PKCS7 object. This returns a ContentInfo object suitable for use with the CMS API.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | parseObject(PemObject
the PEM object containing the details for the specific object. obj)Implements org. Parse an object out of the PEM object passed in. |
| PrivateKeyParser | back to summary |
|---|---|
| public PrivateKeyParser() | |
| parseObject | back to summary |
|---|---|
| public Object parseObject(PemObject obj) throws IOException Implements org. Doc from org. Parse an object out of the PEM object passed in.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | parseObject(PemObject
the PEM object containing the details for the specific object. obj)Implements org. Parse an object out of the PEM object passed in. |
| PublicKeyParser | back to summary |
|---|---|
| public PublicKeyParser() | |
| parseObject | back to summary |
|---|---|
| public Object parseObject(PemObject obj) throws IOException Implements org. Doc from org. Parse an object out of the PEM object passed in.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public PEMKeyPair |
| RSAKeyPairParser | back to summary |
|---|---|
| private RSAKeyPairParser() | |
| parse | back to summary |
|---|---|
| public PEMKeyPair parse(byte[] encoding) throws IOException Implements org. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | parseObject(PemObject
the PEM object containing the details for the specific object. obj)Implements org. Parse an object out of the PEM object passed in. |
| RSAPublicKeyParser | back to summary |
|---|---|
| public RSAPublicKeyParser() | |
| parseObject | back to summary |
|---|---|
| public Object parseObject(PemObject obj) throws IOException Implements org. Doc from org. Parse an object out of the PEM object passed in.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | parseObject(PemObject
the PEM object containing the details for the specific object. obj)Implements org. Parse an object out of the PEM object passed in. |
| X509AttributeCertificateParser | back to summary |
|---|---|
| private X509AttributeCertificateParser() | |
| parseObject | back to summary |
|---|---|
| public Object parseObject(PemObject obj) throws IOException Implements org. Doc from org. Parse an object out of the PEM object passed in.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the X509Certificatethe PEM object containing the details for the specific object. obj)Implements org. Reads in a X509Certificate. |
| X509CertificateParser | back to summary |
|---|---|
| private X509CertificateParser() | |
| parseObject | back to summary |
|---|---|
| public Object parseObject(PemObject obj) throws IOException Implements org. Reads in a X509Certificate.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the X509Certificatethe PEM object containing the details for the specific object. obj)Implements org. Reads in a X509CRL. |
| X509CRLParser | back to summary |
|---|---|
| private X509CRLParser() | |
| parseObject | back to summary |
|---|---|
| public Object parseObject(PemObject obj) throws IOException Implements org. Reads in a X509CRL.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the X509Certificatethe PEM object containing the details for the specific object. obj)Implements org. Reads in a X509Certificate. |
| X509TrustedCertificateParser | back to summary |
|---|---|
| private X509TrustedCertificateParser() | |
| parseObject | back to summary |
|---|---|
| public Object parseObject(PemObject obj) throws IOException Implements org. Reads in a X509Certificate.
| |