java.security.cert
public abstract class CertificateFactorySpi extends Object
Constructor and Description |
---|
CertificateFactorySpi()
Constructs a new CertificateFactorySpi
|
Modifier and Type | Method and Description |
---|---|
abstract Certificate |
engineGenerateCertificate(InputStream inStream)
Generates a Certificate based on the encoded data read
from the InputStream.
|
abstract Collection<? extends Certificate> |
engineGenerateCertificates(InputStream inStream)
Returns a collection of certificates that were read from the
input stream.
|
CertPath |
engineGenerateCertPath(InputStream inStream)
Generate a
CertPath and initialize it with data parsed from
the input stream. |
CertPath |
engineGenerateCertPath(InputStream inStream,
String encoding)
Generate a
CertPath and initialize it with data parsed from
the input stream, using the specified encoding. |
CertPath |
engineGenerateCertPath(List<? extends Certificate> certificates)
|
abstract CRL |
engineGenerateCRL(InputStream inStream)
Generates a CRL based on the encoded data read
from the InputStream.
|
abstract Collection<? extends CRL> |
engineGenerateCRLs(InputStream inStream)
Generates CRLs based on the encoded data read
from the InputStream.
|
Iterator<String> |
engineGetCertPathEncodings()
Returns an Iterator of CertPath encodings supported by this
factory, with the default encoding first.
|
public CertificateFactorySpi()
public abstract Certificate engineGenerateCertificate(InputStream inStream) throws CertificateException
inStream
- an input stream containing the certificate dataCertificateException
- Certificate parsing errorpublic abstract Collection<? extends Certificate> engineGenerateCertificates(InputStream inStream) throws CertificateException
inStream
- an input stream containing the certificatesCertificateException
- Certificate parsing errorpublic abstract CRL engineGenerateCRL(InputStream inStream) throws CRLException
inStream
- an input stream containing the CRL dataCRLException
- CRL parsing errorpublic abstract Collection<? extends CRL> engineGenerateCRLs(InputStream inStream) throws CRLException
inStream
- an input stream containing the CRLsCRLException
- CRL parsing errorpublic CertPath engineGenerateCertPath(InputStream inStream) throws CertificateException
CertPath
and initialize it with data parsed from
the input stream. The default encoding of this factory is used.inStream
- The InputStream containing the CertPath data.CertificateException
- If an error occurs decoding the
CertPath.public CertPath engineGenerateCertPath(InputStream inStream, String encoding) throws CertificateException
CertPath
and initialize it with data parsed from
the input stream, using the specified encoding.inStream
- The InputStream containing the CertPath data.encoding
- The encoding of the InputStream data.CertificateException
- If an error occurs decoding the
CertPath.public CertPath engineGenerateCertPath(List<? extends Certificate> certificates) throws CertificateException
certificates
- The list of certificates with which to create
the CertPath.CertificateException
- If an error occurs generating the
CertPath.public Iterator<String> engineGetCertPathEncodings()