namespace Akenti class OpenSSLCertificateFactoryImpl : public CertificateFactoryImpl

A subclass of CertficateFactoryImpl that is used to create OpenSSLCertificates or OpenSSLCertificateReqests from encoded representations of these objects, to create Generators for OpenSSLCertificates or OpenSSLCertificateRequests, and to encode OpenSSLCertficates or OpenSSLCertificateRequests for exporting

Inheritance:


Public Methods

OpenSSLCertificateFactoryImpl ()
Constructs this object
~OpenSSLCertificateFactoryImpl ()
Deletes this object
Certificate initCertificate (const string& type, const string& encoding) const
Returns a Certificate containing a OpenSSLX509CertificateImpl which has been initialized from the encoded string
string getCertificateEncoded (const string& type, const Certificate& certificate) const
Encodes the Certificate using an encoding specified by type
CertificateGenerator getCertificateGenerator (const string& type) const
Return an instance of CertificateGenerator which holds an OpenSSLCertificateGeneratorImpl
CertificateRequest initCertificateRequest (const string& type, const string& encoding) const
Returns a CertificateRequest which holds an OpenSSLCertificateRequestImpl
string getCertificateRequestEncoded (const string& type, const CertificateRequest& request) const
Encodes the CertificateRequst which is assumed to contain an OpenSSLCertificateRequestImpl, using an encoding type specified by type
CertificateRequestGenerator getCertificateRequestGenerator (const string& type) const
Return an instance of CertificateRequestGenerator wrapping an OpenSSLCertificateGeneratorImpl
CertificateRevocationList initCRL (const string& crl, const string& type) const
Return an instance of CertificateRevocationList wrapping an OpenSSLCRLImpl
CertificateRevocationList initCRLFromFile (const string& crlfile, const string& type) const
Return an instance of CertificateRevocationList wrapping an OpenSSLCRLImpl

Inherited from CertificateFactoryImpl:

Public Methods

virtual Certificate initCertificateFromFile(const string& type, const string& fileName) const
virtual vector <Certificate> initCertificatesFromFile(const string& type, const string& fileName) const
virtual vector <Certificate> initCertificates(const string& type, const string& encoding) const

Documentation

A subclass of CertficateFactoryImpl that is used to create OpenSSLCertificates or OpenSSLCertificateReqests from encoded representations of these objects, to create Generators for OpenSSLCertificates or OpenSSLCertificateRequests, and to encode OpenSSLCertficates or OpenSSLCertificateRequests for exporting.
OpenSSLCertificateFactoryImpl()
Constructs this object

~OpenSSLCertificateFactoryImpl()
Deletes this object

Certificate initCertificate(const string& type, const string& encoding) const
Returns a Certificate containing a OpenSSLX509CertificateImpl which has been initialized from the encoded string. The type specifies the type of encoding the string is in, e.g. DER or PEM.
Throws:
SecurityException if either type is unsupported or if decoding fails
Returns:
a Certificate
Parameters:
type - the Certificate's encoding type
encoding - a string of bytes
See Also:
CertificateFactory
CertificateFactoryImpl

string getCertificateEncoded(const string& type, const Certificate& certificate) const
Encodes the Certificate using an encoding specified by type. It assumes that the Certificate holds a OpenSSLX509CertificateImpl and the type is one supported by the X509 libraries (e.g. PEM or DER)
Throws:
Error if certificate is unitialized or unrecognized
SecurityException if type is unsupported or if the encoding fails
Returns:
encoding a string of bytes
Parameters:
type - string specifies the type to be used
certificate - Certificate to be encoded
See Also:
Certificate
CertificateImpl

CertificateGenerator getCertificateGenerator(const string& type) const
Return an instance of CertificateGenerator which holds an OpenSSLCertificateGeneratorImpl.
Parameters:
type - not used currently but here to match the CertificateFactoryImpl interface.
See Also:
CertificateGenerator
CertificateGeneratorImpl

CertificateRequest initCertificateRequest(const string& type, const string& encoding) const
Returns a CertificateRequest which holds an OpenSSLCertificateRequestImpl. The type specifies the type of encoding used by the string representation of the CertificateRequest, e.g. DER or PEM.
Throws:
SecurityException if type is unsupported or if decoding fails
Returns:
a CertificateRequest
Parameters:
type - the CertificateRequest's encoding type
encoding - a string of bytes
See Also:
CertificateRequest
CertificateRequestImpl

string getCertificateRequestEncoded(const string& type, const CertificateRequest& request) const
Encodes the CertificateRequst which is assumed to contain an OpenSSLCertificateRequestImpl, using an encoding type specified by type.
Throws:
Error if request is unitialized or unrecognized
SecurityException if type is unsupported or if the encoding fails
Returns:
encoding a string of bytes
Parameters:
type - string specifies the type of encoding to be used
request - CertificateRequest to be encoded
See Also:
CertificateRequest
CertificateRequestImpl

CertificateRequestGenerator getCertificateRequestGenerator(const string& type) const
Return an instance of CertificateRequestGenerator wrapping an OpenSSLCertificateGeneratorImpl.type is included as a parameter to match the CertificateFactoryImpl method, but is not used here.
Parameters:
type - not used.
See Also:
CertificateRequestGenerator
CertificateRequestGeneratorImpl

CertificateRevocationList initCRL(const string& crl, const string& type) const
Return an instance of CertificateRevocationList wrapping an OpenSSLCRLImpl. type is included as a parameter to indicate which type of encoding has been used to create the crl supplied
Parameters:
crl - string that refers to the CRL
type - string that refers to the type of CRL encoding
See Also:
CertificateRevocationList

CertificateRevocationList initCRLFromFile(const string& crlfile, const string& type) const
Return an instance of CertificateRevocationList wrapping an OpenSSLCRLImpl. type is included as a parameter to indicate which type of encoding has been used to create the crlfile that is supplied
Parameters:
crl - string that refers to the CRL filename
type - string that refers to the type of CRL encoding
See Also:
CertificateRevocationList


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de