FileDocCategorySizeDatePackage
CertificateFactorySpi.javaAPI DocAndroid 1.5 API6362Wed May 06 22:41:06 BST 2009java.security.cert

CertificateFactorySpi

public abstract class CertificateFactorySpi extends Object
This class defines the Service Provider Interface (SPI) for the {@code CertificateFactory} class. This SPI must be implemented for each certificate type a security provider wishes to support.
since
Android 1.0

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

since
Android 1.0

    
Methods Summary
public abstract java.security.cert.CRLengineGenerateCRL(java.io.InputStream inStream)
Generates and initializes a Certificate Revocation List (CRL) from the provided input stream.

param
inStream the stream from where data is read to create the CRL.
return
an CRL instance.
exception
CRLException if parsing problems are detected.
since
Android 1.0

public abstract java.util.CollectionengineGenerateCRLs(java.io.InputStream inStream)
Generates and initializes a collection of Certificate Revocation List (CRL) from the provided input stream.

param
inStream the stream from which the data is read to create the CRLs.
return
a collection of CRLs.
exception
CRLException if parsing problems are detected.
since
Android 1.0

public java.security.cert.CertPathengineGenerateCertPath(java.io.InputStream inStream)
Generates a {@code CertPath} from the provided {@code InputStream}. The default encoding scheme is applied.

param
inStream an input stream with encoded data.
return
a {@code CertPath} initialized from the provided data.
throws
CertificateException if parsing problems are detected.
since
Android 1.0

        throw new UnsupportedOperationException(
                Messages.getString("security.70")); //$NON-NLS-1$
    
public java.security.cert.CertPathengineGenerateCertPath(java.io.InputStream inStream, java.lang.String encoding)
Generates a {@code CertPath} from the provided {@code InputStream} in the specified encoding.

param
inStream an input stream containing certificate path data in specified encoding.
param
encoding the encoding of the data in the input stream.
return
a {@code CertPath} initialized from the provided data
throws
CertificateException if parsing problems are detected.
throws
UnsupportedOperationException if the provider does not implement this method.
since
Android 1.0

        throw new UnsupportedOperationException(
                Messages.getString("security.71")); //$NON-NLS-1$
    
public java.security.cert.CertPathengineGenerateCertPath(java.util.List certificates)
Generates a {@code CertPath} from the provided list of certificates. The encoding is the default encoding.

param
certificates the list containing certificates in a format supported by the {@code CertificateFactory}.
return
a {@code CertPath} initialized from the provided data.
throws
CertificateException if parsing problems are detected.
throws
UnsupportedOperationException if the provider does not implement this method.
since
Android 1.0

        throw new UnsupportedOperationException(
                Messages.getString("security.72")); //$NON-NLS-1$
    
public abstract java.security.cert.CertificateengineGenerateCertificate(java.io.InputStream inStream)
Generates and initializes a {@code Certificate} from the provided input stream.

param
inStream the stream from which the data is read to create the certificate.
return
an initialized certificate.
exception
CertificateException if parsing problems are detected.
since
Android 1.0

public abstract java.util.CollectionengineGenerateCertificates(java.io.InputStream inStream)
Generates and initializes a collection of certificates from the provided input stream.

param
inStream the stream from where data is read to create the certificates.
return
a collection of certificates.
exception
CertificateException if parsing problems are detected.
since
Android 1.0

public java.util.IteratorengineGetCertPathEncodings()
Returns an {@code Iterator} over the supported {@code CertPath} encodings (as Strings). The first element is the default encoding.

return
an iterator over supported {@code CertPath} encodings (as Strings).
since
Android 1.0

        throw new UnsupportedOperationException(
                Messages.getString("security.73")); //$NON-NLS-1$