namespace Akenti class OpenSSLCertificateGeneratorImpl : public CertificateGeneratorImpl

This class is the subclass of CertificateGeneratorImpl,it implements the methods used to initialize and generate a Certificate which contains an OpenSSLX509CertficateImpl

Inheritance:


Public Methods

OpenSSLCertificateGeneratorImpl ()
Constructs this object
~OpenSSLCertificateGeneratorImpl ()
Deletes this object
void setSubject (const Principal& subject)
Sets the subject of this certificate
void setSubjectPublicKey (const PublicKey& subjectKey)
Sets the public key of this certificate
void setIssuer (const Principal& issuer)
Sets the issuer of this certificate
void setValidity (int days)
Sets the number of days that the certificate will be valid
void setSerialNumber (long serialNumber)
Sets the serial number of this certificate
void setVersionNumber (long versionNumber)
Sets the version number of this certificate
Certificate generate (const string& algorithm, const PrivateKey& privateKey)
Signs the certificate using the signature algorithm specified by algorithm and the guarantor's private key specified by privateKey
string paramString () const
Returns string of items of this certificate for correctness check

Documentation

This class is the subclass of CertificateGeneratorImpl,it implements the methods used to initialize and generate a Certificate which contains an OpenSSLX509CertficateImpl. Once a certificate has been generated and signed it can no longer be modified. The methods includes setting the subject, subject's publicKey, issuer, validity, serial number, version number. It generates and signs the Certificate with a specified algorithm and privateKey. Also, it will display the Certificate as a string. The certificate generation is done by calls to the openssl libraries.
OpenSSLCertificateGeneratorImpl()
Constructs this object

~OpenSSLCertificateGeneratorImpl()
Deletes this object

void setSubject(const Principal& subject)
Sets the subject of this certificate.
Parameters:
subject - Principal is the subject of this certificate

void setSubjectPublicKey(const PublicKey& subjectKey)
Sets the public key of this certificate.
Parameters:
subjectKey - PublicKey contains an OpenSSLPublicKeyImpl that contains the public key of the subject

void setIssuer(const Principal& issuer)
Sets the issuer of this certificate.
Parameters:
issuer - Principal is the issuer of this certificate

void setValidity(int days)
Sets the number of days that the certificate will be valid
Parameters:
days - int the number of days that the certificate will be valid

void setSerialNumber(long serialNumber)
Sets the serial number of this certificate.
Parameters:
serialNumber - long the serial number

void setVersionNumber(long versionNumber)
Sets the version number of this certificate.
Parameters:
versionNumber - long the version number

Certificate generate(const string& algorithm, const PrivateKey& privateKey)
Signs the certificate using the signature algorithm specified by algorithm and the guarantor's private key specified by privateKey. the privateKey should reference an OpenSSLPrivateKeyImpl.
Throws:
SecurityException : unrecognized public key
SecurityException : unrecognized private key
SecurityException : signature failed
Returns:
the generated certificate
Parameters:
algorithm - string the specified algorithm
privateKey - PrivateKey the private key of the guarantor
See Also:
generate

string paramString() const
Returns string of items of this certificate for correctness check


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