Android APIs
public abstract class

CertificateFactorySpi

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

Class Overview

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).
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CertificateFactorySpi ()

Added in API level 1

Constructs a new instance of this class.

Public Methods

public abstract CRL engineGenerateCRL (InputStream inStream)

Added in API level 1

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

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

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

Added in API level 1

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

Parameters
inStream the stream from which the data is read to create the CRLs.
Returns
  • a collection of CRLs.
Throws
CRLException if parsing problems are detected.

public CertPath engineGenerateCertPath (InputStream inStream, String encoding)

Added in API level 1

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

Throws
CertificateException if parsing problems are detected.
UnsupportedOperationException if the provider does not implement this method.

public CertPath engineGenerateCertPath (List<? extends Certificate> certificates)

Added in API level 1

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

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

public CertPath engineGenerateCertPath (InputStream inStream)

Added in API level 1

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

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

public abstract Certificate engineGenerateCertificate (InputStream inStream)

Added in API level 1

Generates and initializes a Certificate from the provided input stream.

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

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

Added in API level 1

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

Parameters
inStream the stream from where data is read to create the certificates.
Returns
  • a collection of certificates.
Throws
CertificateException if parsing problems are detected.

public Iterator<String> engineGetCertPathEncodings ()

Added in API level 1

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

Returns
  • an iterator over supported CertPath encodings (as Strings).