namespace Akenti class PublicKey
This abstract class defines an interface to a generic signed certificate
-
CertificateGeneratorImpl()
-
Constructs this object
-
virtual ~CertificateGeneratorImpl()
-
Deletes this object
-
virtual void setSubject(const Principal& subject)
-
Sets the subject of this certificate
-
virtual void setSubjectPublicKey(const PublicKey& subjectKey)
-
Sets the Subject's publicKey
-
virtual void setIssuer(const Principal& 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 defines an interface to a generic signed certificate.
A certficate is constant once it has been generated, so this class only
defines methods to get fields of the certificate such as type,
versionNumber, serialNumber, signature that a certificate
supports. A certificate is created by the CertificateGenerator class.
OpenSSLX509Certificate is currently the only subclass of this class.
The rest of the Akenti certificates are subclasses of AkentiCertificateImpl.
CertificateGeneratorImpl()
-
Constructs this object
virtual ~CertificateGeneratorImpl()
-
Deletes this object
virtual void setSubject(const Principal& subject)
-
Sets the subject of this certificate.
- Parameters:
- subject - Principal 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 Principal& 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
- Author:
- Srilekha Mudumbai
Abdelilah Essiari
- Version:
- 1.1 00/05/01
- See Also:
- UtcTime
PublicKey
Principal
Signature
AkentiCertificateImpl
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