Agent System POND 1.0 (1.7.2000)

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 (ans 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 (ans only this data is consumed).
Parameters:
inStream - an input stream with the certificate data.
Returns:
an AgentIdentity with the data from the input stream.
Throws:
CertificateException - on parsing errors.
Overrides:
engineGenerateCertificate in class CertificateFactorySpi

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
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.
Overrides:
engineGenerateCertificates in class CertificateFactorySpi

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
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.
Overrides:
engineGenerateCRL in class CertificateFactorySpi

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
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.
Overrides:
engineGenerateCRLs in class CertificateFactorySpi

Agent System POND 1.0 (1.7.2000)

Submit a bug

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