public class

JDKX509CertificateFactory

extends CertificateFactorySpi
java.lang.Object
   ↳ java.security.cert.CertificateFactorySpi
     ↳ org.bouncycastle.jce.provider.JDKX509CertificateFactory

Class Overview

class for dealing with X509 certificates.

At the moment this will deal with "-----BEGIN CERTIFICATE-----" to "-----END CERTIFICATE-----" base 64 encoded certs, as well as the BER binaries of certificates and some classes of PKCS#7 objects.

Summary

Public Constructors
JDKX509CertificateFactory()
Public Methods
CRL engineGenerateCRL(InputStream inStream)
Generates a certificate revocation list (CRL) object and initializes it with the data read from the input stream inStream.
Collection engineGenerateCRLs(InputStream inStream)
Returns a (possibly empty) collection view of the CRLs read from the given input stream inStream.
CertPath engineGenerateCertPath(List certificates)
CertPath engineGenerateCertPath(InputStream inStream, String encoding)
CertPath engineGenerateCertPath(InputStream inStream)
Certificate engineGenerateCertificate(InputStream in)
Generates a certificate object and initializes it with the data read from the input stream inStream.
Collection engineGenerateCertificates(InputStream inStream)
Returns a (possibly empty) collection view of the certificates read from the given input stream inStream.
Iterator engineGetCertPathEncodings()
Protected Methods
CRL createCRL(CertificateList c)
[Expand]
Inherited Methods
From class java.security.cert.CertificateFactorySpi
From class java.lang.Object

Public Constructors

public JDKX509CertificateFactory ()

Public Methods

public CRL engineGenerateCRL (InputStream inStream)

Generates a certificate revocation list (CRL) object and initializes it with the data read from the input stream inStream.

Throws
CRLException

public Collection engineGenerateCRLs (InputStream inStream)

Returns a (possibly empty) collection view of the CRLs read from the given input stream inStream. The inStream may contain a sequence of DER-encoded CRLs, or a PKCS#7 CRL set. This is a PKCS#7 SignedData object, with the only signficant field being crls. In particular the signature and the contents are ignored.

Throws
CRLException

public CertPath engineGenerateCertPath (List certificates)

public CertPath engineGenerateCertPath (InputStream inStream, String encoding)

public CertPath engineGenerateCertPath (InputStream inStream)

public Certificate engineGenerateCertificate (InputStream in)

Generates a certificate object and initializes it with the data read from the input stream inStream.

public Collection engineGenerateCertificates (InputStream inStream)

Returns a (possibly empty) collection view of the certificates read from the given input stream inStream.

public Iterator engineGetCertPathEncodings ()

Protected Methods

protected CRL createCRL (CertificateList c)

Throws
CRLException