class CertificateGeneratorImpl

This abstract class provides applications with certificate generation

Inheritance:


Public Methods

CertificateGeneratorImpl ()
Constructs this object
virtual ~CertificateGeneratorImpl ()
Deletes this object
virtual void setSubject (const DistinguishedName& subject)
Sets the subject of this certificate
virtual void setSubjectPublicKey (const PublicKey& subjectKey)
Sets the Subject's publicKey
virtual void setIssuer (const DistinguishedName& issuer)
Sets the issuer of this certificate
virtual void setValidity (int days)
Sets the validity of this certificate
virtual void setSerialNumber (long serialNumber)
Sets the serial number of this certificate
virtual void setVersionNumber (long versionNumber)
Sets the version number of this certificate
virtual 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
virtual string paramString () const
Returns string of items of this certificate for correctness check

Documentation

This abstract class provides applications with certificate generation. A certificate is a constant object that can not be changed once it has been created. Certficates are either initialized by reading in the contents from a file, or generated by a certificateGenerator object. The generator allows the various fields of a certificate to be set and when they have all been set, the generate method is called which creates a new certificate.
CertificateGeneratorImpl()
Constructs this object

virtual ~CertificateGeneratorImpl()
Deletes this object

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

virtual void setSubjectPublicKey(const PublicKey& subjectKey)
Sets the Subject's publicKey.
Parameters:
subjectKey - PublicKey this is the public key of the subject

virtual void setIssuer(const DistinguishedName& issuer)
Sets the issuer of this certificate.
Parameters:
issuer - the issuer used for setting

virtual void setValidity(int days)
Sets the validity of this certificate.
Parameters:
days - length of time used for setting this validation

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

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

virtual 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 signature is added to the certificate fields. Once a certificate has been generated, it can no longer be modified.
Throws:
SecurityException
Returns:
the generated certificate
Parameters:
algorithm - string the specified algorithm
privateKey - PrivateKey the private key of the guarantor

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


Direct child classes:
OpenSSLCertificateGeneratorImpl
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01
See Also:
CertificateGenerator
Certificate
OpenSSLCertificateGeneratorImpl - a subclass of this one
AkentiCertGenerator - the base class for all AkentiCerts

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