public class X509CertFactoryImpl extends CertificateFactorySpi
Cache
Constructor and Description |
---|
X509CertFactoryImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Certificate |
engineGenerateCertificate(InputStream inStream)
Generates the X.509 certificate from the data in the stream.
|
Collection<? extends Certificate> |
engineGenerateCertificates(InputStream inStream)
Generates the collection of the certificates on the base of provided
via input stream encodings.
|
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 certificates)
Generates a
CertPath from the provided list of certificates. |
CRL |
engineGenerateCRL(InputStream inStream)
Generates and initializes a Certificate Revocation List (CRL) from
the provided input stream.
|
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 X509CertFactoryImpl()
public Certificate engineGenerateCertificate(InputStream inStream) throws CertificateException
"-----BEGIN CERTIFICATE-----"
at the beginning and
"-----END CERTIFICATE-----"
at the end) representation
of the former encoded form.
Before the generation the encoded form is looked up in
the cache. If the cache contains the certificate with requested encoded
form it is returned from it, otherwise it is generated by ASN.1
decoder.engineGenerateCertificate
in class CertificateFactorySpi
inStream
- the stream from which the data is read to create the
certificate.CertificateException
- if parsing problems are detected.method documentation for more info
public Collection<? extends Certificate> engineGenerateCertificates(InputStream inStream) throws CertificateException
engineGenerateCertificates
in class CertificateFactorySpi
inStream
- the stream from where data is read to create the certificates.CertificateException
- if parsing problems are detected.method documentation for more info
public CRL engineGenerateCRL(InputStream inStream) throws CRLException
CertificateFactorySpi
engineGenerateCRL
in class CertificateFactorySpi
inStream
- the stream from where data is read to create the CRL.CRLException
- if parsing problems are detected.method documentation for more info
public Collection<? extends CRL> engineGenerateCRLs(InputStream inStream) throws CRLException
CertificateFactorySpi
engineGenerateCRLs
in class CertificateFactorySpi
inStream
- the stream from which the data is read to create the CRLs.CRLException
- if parsing problems are detected.method documentation for more info
public CertPath engineGenerateCertPath(InputStream inStream) throws CertificateException
CertificateFactorySpi
CertPath
from the provided InputStream
. The
default encoding scheme is applied.engineGenerateCertPath
in class CertificateFactorySpi
inStream
- an input stream with encoded data.CertPath
initialized from the provided data.CertificateException
- if parsing problems are detected.method documentation for more info
public CertPath engineGenerateCertPath(InputStream inStream, String encoding) throws CertificateException
CertificateFactorySpi
CertPath
from the provided InputStream
in the specified encoding.engineGenerateCertPath
in class CertificateFactorySpi
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.method documentation for more info
public CertPath engineGenerateCertPath(List certificates) throws CertificateException
CertificateFactorySpi
CertPath
from the provided list of certificates. The
encoding is the default encoding.engineGenerateCertPath
in class CertificateFactorySpi
certificates
- the list containing certificates in a format supported by the
CertificateFactory
.CertPath
initialized from the provided data.CertificateException
- if parsing problems are detected.method documentation for more info
public Iterator<String> engineGetCertPathEncodings()
CertificateFactorySpi
Iterator
over the supported CertPath
encodings
(as Strings). The first element is the default encoding.engineGetCertPathEncodings
in class CertificateFactorySpi
CertPath
encodings (as
Strings).method documentation for more info