class OpenSSLCertificateFactoryImpl

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

[more] OpenSSLCertificateFactoryImpl ()
Constructs this object
[more] ~OpenSSLCertificateFactoryImpl ()
Deletes this object
[more]Certificate initCertificate (const string& type, const string& encoding) const
Returns a Certificate containing a OpenSSLX509CertificateImpl which has been initialized from the encoded string.
[more]string getCertificateEncoded (const string& type, const Certificate& certificate) const
Encodes the Certificate using an encoding specified by type.
[more]CertificateGenerator getCertificateGenerator (const string& type) const
Return an instance of CertificateGenerator which holds an OpenSSLCertificateGeneratorImpl.
[more]CertificateRequest initCertificateRequest (const string& type, const string& encoding) const
Returns a CertificateRequest which holds an OpenSSLCertificateRequestImpl.
[more]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.
[more]CertificateRequestGenerator getCertificateRequestGenerator (const string& type) const
Return an instance of CertificateRequestGenerator wrapping an OpenSSLCertificateGeneratorImpltype is included as a parameter to match the CertificateFactoryImpl method, but is not used here.
[more]CertificateRevocationList initCRL (const string& crl, const string& type) const
Return an instance of CertificateRevocationList wrapping an OpenSSLCRLImpl.
[more]CertificateRevocationList initCRLFromFile (const string& crlfile, const string& type) const
Return an instance of CertificateRevocationList wrapping an OpenSSLCRLImpl.


Inherited from CertificateFactoryImpl:

Public Methods

ovirtual Certificate initCertificateFromFile(const string& type, const string& fileName) const
ovirtual vector<Certificate> initCertificatesFromFile(const string& type, const string& fileName) const
ovirtual vector<Certificate> initCertificates(const string& type, const string& encoding) const
ovirtual CertificateChain initCertificateChainFromFile(const string& type, const string& fname) const
ovirtual CertificateChain initCertificateChain(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.

o OpenSSLCertificateFactoryImpl()
Constructs this object

o ~OpenSSLCertificateFactoryImpl()
Deletes this object

oCertificate 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
Parameters:
type - the Certificate's encoding type
encoding - a string of bytes
Returns:
a Certificate
See Also:
CertificateFactory
CertificateFactoryImpl

ostring 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
Parameters:
type - string specifies the type to be used
certificate - Certificate to be encoded
Returns:
encoding a string of bytes
See Also:
Certificate
CertificateImpl

oCertificateGenerator 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

oCertificateRequest 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
Parameters:
type - the CertificateRequest's encoding type
encoding - a string of bytes
Returns:
a CertificateRequest
See Also:
CertificateRequest
CertificateRequestImpl

ostring 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
Parameters:
type - string specifies the type of encoding to be used
request - CertificateRequest to be encoded
Returns:
encoding a string of bytes
See Also:
CertificateRequest
CertificateRequestImpl

oCertificateRequestGenerator getCertificateRequestGenerator(const string& type) const
Return an instance of CertificateRequestGenerator wrapping an OpenSSLCertificateGeneratorImpltype is included as a parameter to match the CertificateFactoryImpl method, but is not used here.

Parameters:
type - not used.
See Also:
CertificateRequestGenerator
CertificateRequestGeneratorImpl

oCertificateRevocationList 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

oCertificateRevocationList 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 HTML hierarchy of classes or Java



This page was generated with the help of DOC++.