class AkentiCertificateImpl

This is the base class for all AkentiCertificates; it holds the common members and implements common get and signature methods

Inheritance:


Public Methods

AkentiCertificateImpl (const string& type = "NO_TYPE")
Construct this object given a string specified by type
virtual ~AkentiCertificateImpl ()
Destroys this object
virtual AkentiCertificateImpl* newInstance () const
string hashCode () const
Computes the hashcode of this AkentiCertificateImpl object for searching purposes
virtual string getHashString () const
const string& getType () const
Returns the type of this AkentiCertificateImpl object
bool hasType (const string& type) const
int getVersionNumber () const
Returns the version number of this AkentiCertificateImpl object
const string& getUniqueID () const
Returns the unique id of this AkentiCertificateImpl object
const AkentiPrincipal& getGuarantor () const
Returns the guarantor of this AkentiCertificateImpl object
const UtcTime& getNotBefore () const
Returns the start validity date of this AkentiCertificateImpl object
const UtcTime& getNotAfter () const
Returns the end validity date of this AkentiCertificateImpl object
bool verify (const PublicKey& publicKey) const
Verifies the signature of AkentiCertificateImpl object using a PublicKey specified by publicKey
virtual string getSignable () const
Returns the signable portion of this AkentiCertificateImpl object
const string& getSignatureAlg () const
Returns the signature algorithm that was used to sign this AkentiCertificateImpl object
const string& getSignature () const
Returns the signature that resulted from signing the signable part of this AkentiCertificateImpl object
bool checkValidity (const UtcTime& utcTime) const
Is this AkentiCertificateImpl valid at the time specified by utcTime?
bool checkValidity () const
Is this AkentiCertificateImpl valid now?
string paramString () const
Returns debugging info

Documentation

This is the base class for all AkentiCertificates; it holds the common members and implements common get and signature methods. The user will refer to certificate via a ref-ptr to the CertificateImpl. The set methods are only callable via the CertGenerator before the CertificateImpl has been instantiated. This enforces the policy that CertificateImpl are immutable. The data members of an AkentiCertificate are:
AkentiCertificate {
string           type         certificate type
int              version      certificate format version
string           id           certificate's unique ID
AkentiPrincipal  guarantor    principal that issued and signed the certificate     
UtcTime          notBefore    Certificate not valid before this date
UtcTime          notAfter     Certificate not valid after this date
string           signatureAlg name of hashMac and encryption
                                    algorithm used to sign this cert
  information specific to the type of certificate 
string           signature    signature of the actual certificate
}


AkentiCertificateImpl(const string& type = "NO_TYPE")
Construct this object given a string specified by type

virtual ~AkentiCertificateImpl()
Destroys this object

virtual AkentiCertificateImpl* newInstance() const

string hashCode() const
Computes the hashcode of this AkentiCertificateImpl object for searching purposes
Returns:
the hashcode of this AkentiCertificateImpl

virtual string getHashString() const

const string& getType() const
Returns the type of this AkentiCertificateImpl object.
Returns:
the type of this AkentiCertificateImpl

bool hasType(const string& type) const

int getVersionNumber() const
Returns the version number of this AkentiCertificateImpl object.
Returns:
the version number of this AkentiCertificateImpl

const string& getUniqueID() const
Returns the unique id of this AkentiCertificateImpl object.
Returns:
the unique id of this AkentiCertificateImpl

const AkentiPrincipal& getGuarantor() const
Returns the guarantor of this AkentiCertificateImpl object.
Returns:
the guarantor of this AkentiCertificateImpl
See Also:
AkentiPrincipal

const UtcTime& getNotBefore() const
Returns the start validity date of this AkentiCertificateImpl object.
Returns:
the start validity date of this AkentiCertificateImpl
See Also:
UtcTime

const UtcTime& getNotAfter() const
Returns the end validity date of this AkentiCertificateImpl object.
Returns:
the end validity date of this AkentiCertificateImpl
See Also:
UtcTime

bool verify(const PublicKey& publicKey) const
Verifies the signature of AkentiCertificateImpl object using a PublicKey specified by publicKey.
Returns:
true if signature verifies
Parameters:
publicKey - used to verufy signature
See Also:
PublicKey

virtual string getSignable() const
Returns the signable portion of this AkentiCertificateImpl object.
Returns:
the signable portion of this AkentiCertificateImpl
See Also:
sign(string, PrivateKey)

const string& getSignatureAlg() const
Returns the signature algorithm that was used to sign this AkentiCertificateImpl object.
Returns:
the name of the signature algorithm
See Also:
sign(string, PrivateKey)

const string& getSignature() const
Returns the signature that resulted from signing the signable part of this AkentiCertificateImpl object.
Returns:
the signature of this AkentiCertificateImpl
See Also:
getSignable()
sign(string, PrivateKey)

bool checkValidity(const UtcTime& utcTime) const
Is this AkentiCertificateImpl valid at the time specified by utcTime?
Returns:
true if notBefore <= utcTime <= notAfter
See Also:
getNotBefore()
getNotAfter()
UtcTime

bool checkValidity() const
Is this AkentiCertificateImpl valid now?
Returns:
true if notBefore <= now <= notAfter
See Also:
getNotBefore()
getNotAfter()
UtcTime

string paramString() const
Returns debugging info. Subclass implementors must implement the pure virtual function doParamString(ostream&) so that the additional params are included.
Returns:
string a string representation of this object


Direct child classes:
UseCondCertificateImpl
PolicyCertificateImpl
DelegationCertificateImpl
CapabilityCertificateImpl
CacheCertificateImpl
AttributeCertificateImpl
AkentiX509CertificateImpl
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/04/17
See Also:
AkentiCertificate
AkentiCertGenerator
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