namespace Akenti class AkentiCertGenerator

A AkentiCertGenerator object generates a Akenti Certificate, it completes the information that a akenti certificate holds such as a ID, the principal to whom the certificate belongs to, the guarantor guaranteeing the principal to the associated information in a certificate, the required caching period of a certificate, its verification and validity

Inheritance:


Public Methods

virtual ~AkentiCRLImpl ()
Deletes the AkentiCertificateImpl object
virtual AkentiPrincipal getGuarantor () const
Returns the guarantor in form of AkentiPrincipal of this Akenti Certificates Revocation List
virtual string getVersion () const
Returns version of this Akenti Certificates Revocation List
virtual UtcTime getLastUpdate () const
Returns the Greenwich Mean Time (GMT) of the lastUpdate time of this Akenti Certificates Revocation List
virtual UtcTime getNextUpdate () const
Returns the Greenwich Mean Time (GMT) of the nextUpdate time of this Akenti Certificates Revocation List
virtual vector <AkentiRevokedCertificate> getRevokedCertificates () const
Returns all revoked certificated of this Akenti Certificates Revocation List
virtual bool verify (const PublicKey& publicKey) const
Verifies this Akenti Certificates Revocation List
virtual string getSignature () const
Returns signature of this Akenti Certificates Revocation List
virtual string getSignatureAlgorithm () const
Returns signatureAlgorithm of this Akenti Certificates Revocation List
~AkentiCertGenerator ()
Deletes this object
void setVersionNumber (int version)
Sets the versionNumber to the Akenti Certificate being generated
void setID (const string& id)
Sets the unique identification string representing the Akenti Certificate being generated
void setGuarantor (const AkentiPrincipal& guarantor)
Sets the guarantor (issuer) of the Akenti Certificate being generated in the form of AkentiPrincipal
void setNotBefore (const UtcTime& notBefore)
Sets the Greenwich Mean Time (GMT) of the starting validity date of the certificate being generated
void setNotAfter (const UtcTime& notAfter)
Sets the Greenwich Mean Time (GMT) of the ending validity date of the certificate being generated
void sign (const PrivateKey &privateKey, const string& signatureAlg)
Signs the certificate being generated with specified privateKey and signatureAlg
const AkentiCertificate& generate ()
Returns the AkentiCertificate that this AkentiCertGenerator just generated which has all the information a akenti certificate holds such a ID, the principal to whom the certificate belongs to, the guarantor guaranteeing the principal to the associated information in a certificate, the required caching period of a certificate, its verification and validity

Protected Fields

AkentiCertificate akentiCert
Sets the type of Akenti Certificate that this object refers to

Protected Methods

AkentiCertGenerator (AkentiCertificateImpl *impl)
Constructs a AkentiCertGenerator object with a AkentiCertificateImpl object

Documentation

A AkentiCertGenerator object generates a Akenti Certificate, it completes the information that a akenti certificate holds such as a ID, the principal to whom the certificate belongs to, the guarantor guaranteeing the principal to the associated information in a certificate, the required caching period of a certificate, its verification and validity.
virtual ~AkentiCRLImpl()
Deletes the AkentiCertificateImpl object

virtual AkentiPrincipal getGuarantor() const
Returns the guarantor in form of AkentiPrincipal of this Akenti Certificates Revocation List. the returned guarantor has a pair of DistinguishedNames. the first one is the name of the returned guarantor and the second one is the guarantor of the returned guarantor.
Returns:
s guarantor of this Akenti Certificates Revocation List
See Also:
AkentiPrincipal
DistinguishedName

virtual string getVersion() const
Returns version of this Akenti Certificates Revocation List.
Returns:
s version of this Akenti Certificates Revocation List

virtual UtcTime getLastUpdate() const
Returns the Greenwich Mean Time (GMT) of the lastUpdate time of this Akenti Certificates Revocation List.
Returns:
s the lastUpdate time of this Akenti Certificates Revocation List
See Also:
UtcTime

virtual UtcTime getNextUpdate() const
Returns the Greenwich Mean Time (GMT) of the nextUpdate time of this Akenti Certificates Revocation List.
Returns:
s the nextUpdate time of this Akenti Certificates Revocation List
See Also:
UtcTime

virtual vector <AkentiRevokedCertificate> getRevokedCertificates() const
Returns all revoked certificated of this Akenti Certificates Revocation List.
Returns:
s all revoked certificated of this Akenti Certificates Revocation List
See Also:
AkentiRevokedCertificate

virtual bool verify(const PublicKey& publicKey) const
Verifies this Akenti Certificates Revocation List
Returns:
a boolean whether verified or not

virtual string getSignature() const
Returns signature of this Akenti Certificates Revocation List.
Returns:
s string the signature of this Akenti Certificates Revocation List

virtual string getSignatureAlgorithm() const
Returns signatureAlgorithm of this Akenti Certificates Revocation List.
Returns:
s string the signatureAlgorithm of this Akenti Certificates Revocation List

~AkentiCertGenerator()
Deletes this object

void setVersionNumber(int version)
Sets the versionNumber to the Akenti Certificate being generated.
Parameters:
versionNumber - is set to the generated certificate

void setID(const string& id)
Sets the unique identification string representing the Akenti Certificate being generated.
Parameters:
id - is set to the generated certificate

void setGuarantor(const AkentiPrincipal& guarantor)
Sets the guarantor (issuer) of the Akenti Certificate being generated in the form of AkentiPrincipal
Parameters:
guarantor - is set to the generated certificate
See Also:
AkentiPrincipal

void setNotBefore(const UtcTime& notBefore)
Sets the Greenwich Mean Time (GMT) of the starting validity date of the certificate being generated
Parameters:
notBefore - is set to the genetated certificate
See Also:
UtcTime

void setNotAfter(const UtcTime& notAfter)
Sets the Greenwich Mean Time (GMT) of the ending validity date of the certificate being generated
Parameters:
notAfter - is set to the generated certificate
See Also:
UtcTime

void sign(const PrivateKey &privateKey, const string& signatureAlg)
Signs the certificate being generated with specified privateKey and signatureAlg.
Parameters:
privateKey -
signatureAlg -
See Also:
PrivateKey

const AkentiCertificate& generate()
Returns the AkentiCertificate that this AkentiCertGenerator just generated which has all the information a akenti certificate holds such a ID, the principal to whom the certificate belongs to, the guarantor guaranteeing the principal to the associated information in a certificate, the required caching period of a certificate, its verification and validity.
Returns:
s AkentiCertificate
See Also:
AkentiCertificate
AkentiCertificateImpl

AkentiCertGenerator(AkentiCertificateImpl *impl)
Constructs a AkentiCertGenerator object with a AkentiCertificateImpl object

AkentiCertificate akentiCert
Sets the type of Akenti Certificate that this object refers to
Parameters:
type - is set to this certificate


Direct child classes:
PolicyCertGenerator
CapabilityCertGenerator
Author:
Srilekha Mudumbai
Version:
1.1 00/04/17
See Also:
AkentiCertificate
AkentiCertificateImpl
AkentiPrincipal
UtcTime

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