Agent System POND 1.2 (28.2.2002)

PkgAgentSystem.Crypto
Class PublicKeyCertificateFactory

java.lang.Object
  |
  +--java.security.cert.CertificateFactorySpi
        |
        +--PkgAgentSystem.Crypto.PublicKeyCertificateFactory

public class PublicKeyCertificateFactory
extends CertificateFactorySpi

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.

Version:
1.0, 1.7.2000
Author:
Michael Sonntag
See Also:
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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublicKeyCertificateFactory

public PublicKeyCertificateFactory()
Creates a new factory
Method Detail

engineGenerateCertificate

public Certificate engineGenerateCertificate(InputStream inStream)
                                      throws CertificateException
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).
Overrides:
engineGenerateCertificate in class CertificateFactorySpi
Parameters:
inStream - an input stream with the certificate data.
Returns:
an AgentIdentity with the data from the input stream.
Throws:
CertificateException - on parsing errors.

engineGenerateCertificates

public Collection engineGenerateCertificates(InputStream inStream)
                                      throws CertificateException
Returns a (possibly empty) collection view of the certificates read from the given input stream inStream.
NOT IMPLEMENTED
Overrides:
engineGenerateCertificates in class CertificateFactorySpi
Parameters:
inStream - the input stream with the certificates.
Returns:
a (possibly empty) collection view of java.security.cert.Certificate objects initialized with the data from the input stream.
Throws:
CertificateException - on parsing errors.

engineGenerateCRL

public CRL engineGenerateCRL(InputStream inStream)
                      throws CRLException
Generates a certificate revocation list (CRL) object and initializes it with the data read from the input stream inStream.
NOT IMPLEMENTED
Overrides:
engineGenerateCRL in class CertificateFactorySpi
Parameters:
inStream - an input stream with the CRL data.
Returns:
a CRL object initialized with the data from the input stream.
Throws:
CRLException - on parsing errors.

engineGenerateCRLs

public Collection engineGenerateCRLs(InputStream inStream)
                              throws CRLException
Returns a (possibly empty) collection view of the CRLs read from the given input stream inStream.
NOT IMPLEMENTED
Overrides:
engineGenerateCRLs in class CertificateFactorySpi
Parameters:
inStream - the input stream with the CRLs.
Returns:
a (possibly empty) collection view of java.security.cert.CRL objects initialized with the data from the input stream.
Throws:
CRLException - on parsing errors.

Agent System POND 1.2 (28.2.2002)

Submit a bug

Copyright 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.