|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.security.cert.CertificateFactorySpi
public abstract class CertificateFactorySpi
CertificateFactorySpi is the abstract class Service Provider Interface (SPI) for the CertificateFactory class. A provider must implement all the abstract methods if they wish to supply a certificate factory for a particular certificate type. Ex: X.509 Certificate factories are used to generate certificates and certificate revocation lists (CRL) from their encoding.
| Constructor Summary | |
|---|---|
CertificateFactorySpi()
Constructs a new CertificateFactorySpi |
|
| Method Summary | |
|---|---|
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)
Generate a CertPath and initialize it with the certificates
in the List argument. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CertificateFactorySpi()
| Method Detail |
|---|
public abstract Certificate engineGenerateCertificate(InputStream inStream)
throws CertificateException
inStream - an input stream containing the certificate data
CertificateException - Certificate parsing error
public abstract Collection<? extends Certificate> engineGenerateCertificates(InputStream inStream)
throws CertificateException
inStream - an input stream containing the certificates
CertificateException - Certificate parsing error
public abstract CRL engineGenerateCRL(InputStream inStream)
throws CRLException
inStream - an input stream containing the CRL data
CRLException - CRL parsing error
public abstract Collection<? extends CRL> engineGenerateCRLs(InputStream inStream)
throws CRLException
inStream - an input stream containing the CRLs
CRLException - CRL parsing error
public 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
CertPath and initialize it with the certificates
in the List argument.
certificates - The list of certificates with which to create
the CertPath.
CertificateException - If an error occurs generating the
CertPath.public Iterator<String> engineGetCertPathEncodings()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||