Skip to content

Most visited

Recently visited

navigation
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. This SPI must be implemented for each certificate type a security provider wishes to support.

Summary

Public constructors

CertificateFactorySpi()

Constructs a new instance of this class.

Public methods

abstract CRL engineGenerateCRL(InputStream inStream)

Generates and initializes a Certificate Revocation List (CRL) from the provided input stream.

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

Generates and initializes a collection of Certificate Revocation List (CRL) from the provided input stream.

CertPath engineGenerateCertPath(InputStream inStream, String encoding)

Generates a CertPath (a certificate chain) from the given inputStream, assuming the given encoding from engineGetCertPathEncodings().

CertPath engineGenerateCertPath(List<? extends Certificate> certificates)

Generates a CertPath from the provided list of certificates.

CertPath engineGenerateCertPath(InputStream inStream)

Generates a CertPath from the provided InputStream.

abstract Certificate engineGenerateCertificate(InputStream inStream)

Generates and initializes a Certificate from the provided input stream.

abstract Collection<? extends Certificate> engineGenerateCertificates(InputStream inStream)

Generates and initializes a collection of certificates from the provided input stream.

Iterator<String> engineGetCertPathEncodings()

Returns an Iterator over the supported CertPath encodings (as Strings).

Inherited methods

From class java.lang.Object

Public constructors

CertificateFactorySpi

Added in API level 1
CertificateFactorySpi ()

Constructs a new instance of this class.

Public methods

engineGenerateCRL

Added in API level 1
CRL engineGenerateCRL (InputStream inStream)

Generates and initializes a Certificate Revocation List (CRL) from the provided input stream.

Parameters
inStream InputStream: the stream from where data is read to create the CRL.
Returns
CRL an CRL instance.
Throws
CRLException if parsing problems are detected.

engineGenerateCRLs

Added in API level 1
Collection<? extends CRL> engineGenerateCRLs (InputStream inStream)

Generates and initializes a collection of Certificate Revocation List (CRL) from the provided input stream.

Parameters
inStream InputStream: the stream from which the data is read to create the CRLs.
Returns
Collection<? extends CRL> a collection of CRLs.
Throws
CRLException if parsing problems are detected.

engineGenerateCertPath

Added in API level 1
CertPath engineGenerateCertPath (InputStream inStream, 
                String encoding)

Generates a CertPath (a certificate chain) from the given inputStream, assuming the given encoding from engineGetCertPathEncodings().

Parameters
inStream InputStream
encoding String
Returns
CertPath
Throws
CertificateException if parsing problems are detected.
UnsupportedOperationException if the provider does not implement this method.

engineGenerateCertPath

Added in API level 1
CertPath engineGenerateCertPath (List<? extends Certificate> certificates)

Generates a CertPath from the provided list of certificates. The encoding is the default encoding.

Parameters
certificates List: the list containing certificates in a format supported by the CertificateFactory.
Returns
CertPath a CertPath initialized from the provided data.
Throws
CertificateException if parsing problems are detected.
UnsupportedOperationException if the provider does not implement this method.

engineGenerateCertPath

Added in API level 1
CertPath engineGenerateCertPath (InputStream inStream)

Generates a CertPath from the provided InputStream. The default encoding scheme is applied.

Parameters
inStream InputStream: an input stream with encoded data.
Returns
CertPath a CertPath initialized from the provided data.
Throws
CertificateException if parsing problems are detected.

engineGenerateCertificate

Added in API level 1
Certificate engineGenerateCertificate (InputStream inStream)

Generates and initializes a Certificate from the provided input stream.

Parameters
inStream InputStream: the stream from which the data is read to create the certificate.
Returns
Certificate an initialized certificate.
Throws
CertificateException if parsing problems are detected.

engineGenerateCertificates

Added in API level 1
Collection<? extends Certificate> engineGenerateCertificates (InputStream inStream)

Generates and initializes a collection of certificates from the provided input stream.

Parameters
inStream InputStream: the stream from where data is read to create the certificates.
Returns
Collection<? extends Certificate> a collection of certificates.
Throws
CertificateException if parsing problems are detected.

engineGetCertPathEncodings

Added in API level 1
Iterator<String> engineGetCertPathEncodings ()

Returns an Iterator over the supported CertPath encodings (as Strings). The first element is the default encoding.

Returns
Iterator<String> an iterator over supported CertPath encodings (as Strings).
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.