public abstract class CertificateFactorySpi extends Object
CertificateFactory
class. This SPI must be implemented for each
certificate type a security provider wishes to support.Constructor and Description |
---|
CertificateFactorySpi()
Constructs a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
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.
|
CertPath |
engineGenerateCertPath(InputStream inStream)
Generates a
CertPath from the provided InputStream . |
CertPath |
engineGenerateCertPath(InputStream inStream,
String encoding)
Generates a
CertPath from the provided InputStream in the specified encoding. |
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 (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.
|
Iterator<String> |
engineGetCertPathEncodings()
Returns an
Iterator over the supported CertPath encodings
(as Strings). |
public CertificateFactorySpi()
public abstract Certificate engineGenerateCertificate(InputStream inStream) throws CertificateException
Certificate
from the provided input
stream.inStream
- the stream from which the data is read to create the
certificate.CertificateException
- if parsing problems are detected.public abstract Collection<? extends Certificate> engineGenerateCertificates(InputStream inStream) throws CertificateException
inStream
- the stream from where data is read to create the certificates.CertificateException
- if parsing problems are detected.public abstract CRL engineGenerateCRL(InputStream inStream) throws CRLException
inStream
- the stream from where data is read to create the CRL.CRLException
- if parsing problems are detected.public abstract Collection<? extends CRL> engineGenerateCRLs(InputStream inStream) throws CRLException
inStream
- the stream from which the data is read to create the CRLs.CRLException
- if parsing problems are detected.public CertPath engineGenerateCertPath(InputStream inStream) throws CertificateException
CertPath
from the provided InputStream
. The
default encoding scheme is applied.inStream
- an input stream with encoded data.CertPath
initialized from the provided data.CertificateException
- if parsing problems are detected.public CertPath engineGenerateCertPath(InputStream inStream, String encoding) throws CertificateException
CertPath
from the provided InputStream
in the specified encoding.inStream
- an input stream containing certificate path data in specified
encoding.encoding
- the encoding of the data in the input stream.CertPath
initialized from the provided dataCertificateException
- if parsing problems are detected.UnsupportedOperationException
- if the provider does not implement this method.public CertPath engineGenerateCertPath(List<? extends Certificate> certificates) throws CertificateException
CertPath
from the provided list of certificates. The
encoding is the default encoding.certificates
- the list containing certificates in a format supported by the
CertificateFactory
.CertPath
initialized from the provided data.CertificateException
- if parsing problems are detected.UnsupportedOperationException
- if the provider does not implement this method.