|
Agent System POND 1.2 (28.2.2002) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.security.cert.CertificateFactorySpi | +--PkgAgentSystem.Crypto.PublicKeyCertificateFactory
Factory for creating PublicKeyCertificate
certificates form input streams. Only restoring a single certificate is supported.
Multiple certificates and certificate revocation lists are not implemented and will throw an exception if called.
The certificate will be loaded through the same classloader as the InputStream
to ensure correct access and security.
PublicKeyCertificate
,
AgentCryptographyProvider
,
ClassLoaderObjectInputStream
Constructor Summary | |
PublicKeyCertificateFactory()
Creates a new factory |
Method Summary | |
Certificate |
engineGenerateCertificate(InputStream inStream)
Generates a certificate object and initializes it with the data read from the input stream inStream .The given input stream inStream must contain a single
PublicKeyCertificate certificate.The stream must immediately start with the certificate (and only this data is consumed). |
Collection |
engineGenerateCertificates(InputStream inStream)
Returns a (possibly empty) collection view of the certificates read from the given input stream inStream .
|
CRL |
engineGenerateCRL(InputStream inStream)
Generates a certificate revocation list (CRL) object and initializes it with the data read from the input stream inStream .
|
Collection |
engineGenerateCRLs(InputStream inStream)
Returns a (possibly empty) collection view of the CRLs read from the given input stream inStream .
|
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public PublicKeyCertificateFactory()
Method Detail |
public Certificate engineGenerateCertificate(InputStream inStream) throws CertificateException
inStream
.inStream
must contain a single
PublicKeyCertificate certificate.engineGenerateCertificate
in class CertificateFactorySpi
inStream
- an input stream with the certificate data.CertificateException
- on parsing errors.public Collection engineGenerateCertificates(InputStream inStream) throws CertificateException
inStream
.
engineGenerateCertificates
in class CertificateFactorySpi
inStream
- the input stream with the certificates.CertificateException
- on parsing errors.public CRL engineGenerateCRL(InputStream inStream) throws CRLException
inStream
.
engineGenerateCRL
in class CertificateFactorySpi
inStream
- an input stream with the CRL data.CRLException
- on parsing errors.public Collection engineGenerateCRLs(InputStream inStream) throws CRLException
inStream
.
engineGenerateCRLs
in class CertificateFactorySpi
inStream
- the input stream with the CRLs.CRLException
- on parsing errors.
|
Agent System POND 1.2 (28.2.2002) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |