Build 1.0_r1(from source)

java.security.cert
Class CertificateFactorySpi

java.lang.Object
  extended by java.security.cert.CertificateFactorySpi

public abstract class CertificateFactorySpi
extends Object

This class is a Service Provider Interface (therefore the Spi suffix) for certificate factories to be supplied by providers.


Constructor Summary
CertificateFactorySpi()
          Constructs a new instance of this class.
 
Method Summary
abstract  Certificate engineGenerateCertificate(InputStream inStream)
          Generates and initializes a Certificate from data from the provided input stream.
abstract  Collection<? extends Certificate> engineGenerateCertificates(InputStream inStream)
          Generates and initializes a collection of Certificates from data from the provided input stream.
 CertPath engineGenerateCertPath(InputStream inStream)
          Generates a CertPath from data from the provided InputStream.
 CertPath engineGenerateCertPath(InputStream inStream, String encoding)
          Generates a CertPath from data from the provided InputStream.
 CertPath engineGenerateCertPath(List<? extends Certificate> certificates)
          Generates a CertPath from the provided List of Certificates.
abstract  CRL engineGenerateCRL(InputStream inStream)
          Generates and initializes a Certificate Revocation List from data from the provided input stream.
abstract  Collection<? extends CRL> engineGenerateCRLs(InputStream inStream)
          Generates and initializes a collection of Certificate Revocation List from data from the provided input stream.
 Iterator<String> engineGetCertPathEncodings()
          Returns an Iterator over the supported CertPath encodings (as Strings).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CertificateFactorySpi

public CertificateFactorySpi()
Constructs a new instance of this class.

Method Detail

engineGenerateCertificate

public abstract Certificate engineGenerateCertificate(InputStream inStream)
                                               throws CertificateException
Generates and initializes a Certificate from data from the provided input stream.

Parameters:
inStream - InputStream Stream from where data is read to create the Certificate
Returns:
Certificate an initialized Certificate
Throws:
CertificateException - if parsing problems are detected

engineGenerateCertificates

public abstract Collection<? extends Certificate> engineGenerateCertificates(InputStream inStream)
                                                                      throws CertificateException
Generates and initializes a collection of Certificates from data from the provided input stream.

Parameters:
inStream - InputStream Stream from where data is read to create the Certificates
Returns:
Collection an initialized collection of Certificates
Throws:
CertificateException - if parsing problems are detected

engineGenerateCRL

public abstract CRL engineGenerateCRL(InputStream inStream)
                               throws CRLException
Generates and initializes a Certificate Revocation List from data from the provided input stream.

Parameters:
inStream - InputStream Stream from where data is read to create the CRL
Returns:
CRL an initialized Certificate Revocation List
Throws:
CRLException - if parsing problems are detected

engineGenerateCRLs

public abstract Collection<? extends CRL> engineGenerateCRLs(InputStream inStream)
                                                      throws CRLException
Generates and initializes a collection of Certificate Revocation List from data from the provided input stream.

Parameters:
inStream - InputStream Stream from where data is read to create the CRLs
Returns:
Collection an initialized collection of Certificate Revocation List
Throws:
CRLException - if parsing problems are detected

engineGenerateCertPath

public CertPath engineGenerateCertPath(InputStream inStream)
                                throws CertificateException
Generates a CertPath from data from the provided InputStream. The default encoding is assumed.

Parameters:
inStream - InputStream with PKCS7 or PkiPath encoded data
Returns:
CertPath a CertPath initialized from the provided data
Throws:
CertificateException - if parsing problems are detected

engineGenerateCertPath

public CertPath engineGenerateCertPath(InputStream inStream,
                                       String encoding)
                                throws CertificateException
Generates a CertPath from data from the provided InputStream. The encoding is that specified by the encoding parameter.

Parameters:
inStream - InputStream containing certificate path data in specified encoding
encoding - encoding of the data in the input stream
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

public CertPath engineGenerateCertPath(List<? extends Certificate> certificates)
                                throws CertificateException
Generates a CertPath from the provided List of Certificates. The encoding is the default encoding.

Parameters:
certificates - 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

engineGetCertPathEncodings

public Iterator<String> engineGetCertPathEncodings()
Returns an Iterator over the supported CertPath encodings (as Strings). The first element is the default encoding.

Returns:
Iterator Iterator over supported CertPath encodings (as Strings)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature