org.bouncycastle.jce.provider

Class JDKX509CertificateFactory


public class JDKX509CertificateFactory
extends CertificateFactorySpi

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.

Method Summary

protected CRL
createCRL(CertificateList c)
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(InputStream inStream)
CertPath
engineGenerateCertPath(InputStream inStream, String encoding)
CertPath
engineGenerateCertPath(List certificates)
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()

Method Details

createCRL

protected CRL createCRL(CertificateList c)
            throws CRLException

engineGenerateCRL

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

engineGenerateCRLs

public Collection engineGenerateCRLs(InputStream inStream)
            throws CRLException
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.

engineGenerateCertPath

public CertPath engineGenerateCertPath(InputStream inStream)
            throws CertificateException

engineGenerateCertPath

public CertPath engineGenerateCertPath(InputStream inStream,
                                       String encoding)
            throws CertificateException

engineGenerateCertPath

public CertPath engineGenerateCertPath(List certificates)
            throws CertificateException

engineGenerateCertificate

public Certificate engineGenerateCertificate(InputStream in)
            throws CertificateException
Generates a certificate object and initializes it with the data read from the input stream inStream.

engineGenerateCertificates

public Collection engineGenerateCertificates(InputStream inStream)
            throws CertificateException
Returns a (possibly empty) collection view of the certificates read from the given input stream inStream.

engineGetCertPathEncodings

public Iterator engineGetCertPathEncodings()