CertificateFactorySpi

This class defines the <i>Service Provider Interface</i> (<b>SPI</b>) for the {@code CertificateFactory} class. All the abstract methods in this class must be implemented by each cryptographic service provider who wishes to supply the implementation of a certificate factory for a particular certificate type, e.g., X.509.

<p>Certificate factories are used to generate certificate, certification path ({@code CertPath}) and certificate revocation list (CRL) objects from their encodings.

<p>A certificate factory for X.509 must return certificates that are an instance of {@code java.security.cert.X509Certificate}, and CRLs that are an instance of {@code java.security.cert.X509CRL}.

@author Hemma Prafullchandra @author Jan Luehe @author Sean Mullan

More...

Members

Functions

engineGenerateCRL
CRL engineGenerateCRL(InputStream inStream)

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

engineGenerateCRLs
Collection!CRL engineGenerateCRLs(InputStream inStream)

Returns a (possibly empty) collection view of the CRLs read from the given input stream {@code inStream}.

engineGenerateCertPath
CertPath engineGenerateCertPath(InputStream inStream)

Generates a {@code CertPath} object and initializes it with the data read from the {@code InputStream} inStream. The data is assumed to be in the default encoding.

engineGenerateCertPath
CertPath engineGenerateCertPath(InputStream inStream, string encoding)

Generates a {@code CertPath} object and initializes it with the data read from the {@code InputStream} inStream. The data is assumed to be in the specified encoding.

engineGenerateCertPath
CertPath engineGenerateCertPath(List!(Certificate) certificates)

Generates a {@code CertPath} object and initializes it with a {@code List} of {@code Certificate}s. <p> The certificates supplied must be of a type supported by the {@code CertificateFactory}. They will be copied out of the supplied {@code List} object.

engineGenerateCertificate
Certificate engineGenerateCertificate(InputStream inStream)

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

engineGenerateCertificates
Collection!Certificate engineGenerateCertificates(InputStream inStream)

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

engineGetCertPathEncodings
Iterator!string engineGetCertPathEncodings()

Returns an iteration of the {@code CertPath} encodings supported by this certificate factory, with the default encoding first. See the CertPath Encodings section in the <a href= "{@docRoot}/../technotes/guides/security/StandardNames.html#CertPathEncodings"> Java Cryptography Architecture Standard Algorithm Name Documentation</a> for information about standard encoding names. <p> Attempts to modify the returned {@code Iterator} via its {@code remove} method result in an {@code UnsupportedOperationException}.

Detailed Description

@see CertificateFactory @see Certificate @see X509Certificate @see CertPath @see CRL @see X509CRL

@since 1.2

Meta