CertificateFactory class.
All the abstract methods in this class must be implemented by each
cryptographic service provider who wishes to supply the implementation
of a certificate factory for a particular certificate type, e.g., X.509.
Certificate factories are used to generate certificate, certification path
(CertPath) and certificate revocation list (CRL) objects from
their encodings.
A certificate factory for X.509 must return certificates that are an
instance of java.security.cert.X509Certificate, and CRLs
that are an instance of java.security.cert.X509CRL.
CertificateFactory, Certificate, X509Certificate, CertPath, CRL, X509CRL
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Certificate | Returns: a certificate object initialized with the data from the input stream.an input stream with the certificate data. inStream)Generates a certificate object and initializes it with
the data read from the input stream |
| public abstract Collection | Returns: a (possibly empty) collection view of java.security.cert.Certificate objects initialized with the data from the input stream.the input stream with the certificates. inStream)Returns a (possibly empty) collection view of the certificates read
from the given input stream |
| public CertPath | Returns: aCertPath initialized with the data from the
InputStreaman inStream)InputStream containing the dataGenerates a |
| public CertPath | Returns: aCertPath initialized with the data from the
InputStreaman inStream, String InputStream containing the datathe encoding used for the data encoding)Generates a |
| public CertPath | Returns: aCertPath initialized with the supplied list of
certificatesa certificates)List of CertificatesGenerates a |
| public abstract CRL | Returns: a CRL object initialized with the data from the input stream.an input stream with the CRL data. inStream)Generates a certificate revocation list (CRL) object and initializes it
with the data read from the input stream |
| public abstract Collection | Returns: a (possibly empty) collection view of java.security.cert.CRL objects initialized with the data from the input stream.the input stream with the CRLs. inStream)Returns a (possibly empty) collection view of the CRLs read
from the given input stream |
| public Iterator | Returns: anIterator over the names of the supported
CertPath encodings (as Strings)Returns an iteration of the |
| CertificateFactorySpi | back to summary |
|---|---|
| public CertificateFactorySpi() Constructor for subclasses to call. | |
| engineGenerateCertificate | back to summary |
|---|---|
| public abstract Certificate engineGenerateCertificate(InputStream inStream) throws CertificateException Generates a certificate object and initializes it with
the data read from the input stream In order to take advantage of the specialized certificate format
supported by this certificate factory,
the returned certificate object can be typecast to the corresponding
certificate class. For example, if this certificate
factory implements X.509 certificates, the returned certificate object
can be typecast to the In the case of a certificate factory for X.509 certificates, the
certificate provided in Note that if the given input stream does not support
| |
| engineGenerateCertificates | back to summary |
|---|---|
| public abstract Collection Returns a (possibly empty) collection view of the certificates read
from the given input stream In order to take advantage of the specialized certificate format
supported by this certificate factory, each element in
the returned collection view can be typecast to the corresponding
certificate class. For example, if this certificate
factory implements X.509 certificates, the elements in the returned
collection can be typecast to the In the case of a certificate factory for X.509 certificates,
Note that if the given input stream does not support
| |
| engineGenerateCertPath | back to summary |
|---|---|
| public CertPath engineGenerateCertPath(InputStream inStream) throws CertificateException Generates a This method was added to version 1.4 of the Java 2 Platform
Standard Edition. In order to maintain backwards compatibility with
existing service providers, this method cannot be
| |
| engineGenerateCertPath | back to summary |
|---|---|
| public CertPath engineGenerateCertPath(InputStream inStream, String encoding) throws CertificateException Generates a This method was added to version 1.4 of the Java 2 Platform
Standard Edition. In order to maintain backwards compatibility with
existing service providers, this method cannot be
| |
| engineGenerateCertPath | back to summary |
|---|---|
| public CertPath engineGenerateCertPath(List<? extends Certificate> certificates) throws CertificateException Generates a
The certificates supplied must be of a type supported by the
This method was added to version 1.4 of the Java 2 Platform
Standard Edition. In order to maintain backwards compatibility with
existing service providers, this method cannot be
| |
| engineGenerateCRL | back to summary |
|---|---|
| public abstract CRL engineGenerateCRL(InputStream inStream) throws CRLException Generates a certificate revocation list (CRL) object and initializes it
with the data read from the input stream In order to take advantage of the specialized CRL format
supported by this certificate factory,
the returned CRL object can be typecast to the corresponding
CRL class. For example, if this certificate
factory implements X.509 CRLs, the returned CRL object
can be typecast to the Note that if the given input stream does not support
| |
| engineGenerateCRLs | back to summary |
|---|---|
| public abstract Collection Returns a (possibly empty) collection view of the CRLs read
from the given input stream In order to take advantage of the specialized CRL format
supported by this certificate factory, each element in
the returned collection view can be typecast to the corresponding
CRL class. For example, if this certificate
factory implements X.509 CRLs, the elements in the returned
collection can be typecast to the In the case of a certificate factory for X.509 CRLs,
Note that if the given input stream does not support
| |
| engineGetCertPathEncodings | back to summary |
|---|---|
| public Iterator Returns an iteration of the
Attempts to modify the returned This method was added to version 1.4 of the Java 2 Platform
Standard Edition. In order to maintain backwards compatibility with
existing service providers, this method cannot be
| |