Added in API level 1

CertificateFactorySpi

public abstract class CertificateFactorySpi
extends Object

java.lang.Object
   ↳ java.security.cert.CertificateFactorySpi


This class defines the Service Provider Interface (SPI) for the 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.

Certificate factories are used to generate certificate, certification path (CertPath) and certificate revocation list (CRL) objects from their encodings.

A certificate factory for X.509 must return certificates that are an instance of java.security.cert.X509Certificate, and CRLs that are an instance of java.security.cert.X509CRL.

Summary

Public constructors

CertificateFactorySpi()

Public methods

abstract CRL engineGenerateCRL(InputStream inStream)

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

abstract Collection<? extends CRL> engineGenerateCRLs(InputStream inStream)

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

CertPath engineGenerateCertPath(InputStream inStream, String encoding)

Generates a CertPath object and initializes it with the data read from the InputStream inStream.

CertPath engineGenerateCertPath(