class Akenti::CertificateGeneratorImpl

This abstract class provides applications with certificate generation.

Inheritance:


Public Methods

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

o CertificateGeneratorImpl()
Constructs this object

ovirtual ~CertificateGeneratorImpl()
Deletes this object

ovirtual void setSubject(const DistinguishedName& subject) = 0
Sets the subject of this certificate.

Parameters:
subject - DistinguishedName is the subject of this certificate

ovirtual void setSubjectPublicKey(const PublicKey& subjectKey) = 0
Sets the Subject's publicKey.

Parameters:
subjectKey - PublicKey this is the public key of the subject

ovirtual void setIssuer(const DistinguishedName& issuer) = 0
Sets the issuer of this certificate.

Parameters:
issuer - the issuer used for setting

ovirtual void setValidity(int days) = 0
Sets the validity of this certificate.

Parameters:
days - length of time used for setting this validation

ovirtual void setSerialNumber(long serialNumber) = 0
Sets the serial number of this certificate.

Parameters:
serialNumber - long the serial number

ovirtual void setVersionNumber(long versionNumber) = 0
Sets the version number of this certificate.

Parameters:
versionNumber - long the version number

ovirtual Certificate generate(const string& algorithm, const PrivateKey& privateKey) = 0
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
Parameters:
- algorithm string the specified algorithm
privateKey - PrivateKey the private key of the guarantor
Returns:
the generated certificate

ovirtual string paramString() const = 0
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 HTML hierarchy of classes or Java



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