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
CertificateengineGenerateCertificate(InputStream in)
Generates a certificate object and initializes it with the data read from the input stream inStream.
CollectionengineGenerateCertificates(InputStream inStream)
Returns a (possibly empty) collection view of the certificates read from the given input stream inStream.
CertPathengineGenerateCertPath(InputStream inStream)
CertPathengineGenerateCertPath(InputStream inStream, String encoding)
CertPathengineGenerateCertPath(List certificates)
CRLengineGenerateCRL(InputStream inStream)
Generates a certificate revocation list (CRL) object and initializes it with the data read from the input stream inStream.
CollectionengineGenerateCRLs(InputStream inStream)
Returns a (possibly empty) collection view of the CRLs read from the given input stream inStream.
IteratorengineGetCertPathEncodings()

Method Detail

engineGenerateCertificate

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

engineGenerateCertificates

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

engineGenerateCertPath

public CertPath engineGenerateCertPath(InputStream inStream)

engineGenerateCertPath

public CertPath engineGenerateCertPath(InputStream inStream, String encoding)

engineGenerateCertPath

public CertPath engineGenerateCertPath(List certificates)

engineGenerateCRL

public CRL engineGenerateCRL(InputStream inStream)
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)
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.

engineGetCertPathEncodings

public Iterator engineGetCertPathEncodings()