namespace Akenti class AttributeCertificateImpl : public AkentiCertificateImpl

Class AttributeCertificateImpl is an implementation class for AkentiCertificate

Inheritance:


Public Methods

AttributeCertGenerator ()
Constructs this object
~AttributeCertGenerator ()
Destroys this object
void setAttribute (const string& attribute)
Sets the attributes for a particular certificate
void setValue (const string& value)
Sets the value for the attribute
void setPrincipal (const AkentiPrincipal& principal)
Sets the principal for the Akenti Certificate
void addAkentiExtension (const AkentiExtension& extensions)
Sets the Akenti Extensions to this certificate
AttributeCertificateImpl ()
Default Constructor
~AttributeCertificateImpl ()
Default destructor
AttributeCertificateImpl* newInstance () const
string getHashString () const
const string& getAttribute () const
const string& getValue () const
const vector <AkentiExtension> & getAkentiExtensions () const
const AkentiPrincipal& getPrincipal () const

Protected Methods

void doWrite (AkentiOutputStream& drain) const
void doRead (AkentiInputStream& source)
void doParamString (ostream& os) const

Inherited from AkentiCertificateImpl:

Public Methods

string hashCode() const
const string& getType() const
bool hasType(const string& type) const
int getVersionNumber() const
const string& getUniqueID() const
const AkentiPrincipal& getGuarantor() const
const UtcTime& getNotBefore() const
const UtcTime& getNotAfter() const
bool verify(const PublicKey& publicKey) const
virtual string getSignable() const
const string& getSignatureAlg() const
const string& getSignature() const
bool checkValidity(const UtcTime& utcTime) const
bool checkValidity() const
string paramString() const

Documentation

Class AttributeCertificateImpl is an implementation class for AkentiCertificate.

The format for an attribute certificate is:

AttributeCertificateImpl { 
type                      useCondCertificate
id                        Certificate unique id 
Issuer                    Issuer and signer of certificate 
version                   Certificate format version 
NotBefore                 cert is not valid before
NotAfter                  cert is not valid after 
signatureAlg              signature algorithm
Attribute                 attribute name  
Value                     attribute value 
Extensions                vector of additonal constraints on this attribute 
Signature                 SignatureInfo 
} 

These certificates are mainly used to authorize a subject for a certain pair in order to satisfy the constraints in a UseCondCertificate . Akenti Extensions are provided in case, there is a necessity to specify more specific attributes or constraints.

Certificates are generated through AkentiCertificateFactory. There are different generators that are used in order to generate appropriate certificates. There are two ways in which an Attribute Certificate can be generated First way,
AttributeCertificate cert = AkentiCertificateFactory.getInstance("AttributeCert"); cert.readObject(AkentiInputStream& stream);
Second way,
AkentiCertGenerator attrCertGen = AkentiCertificateFactory.getInstance("AttributeCertGen"); attrCertGen.setGuarantor(..); attrCertGen.setAttribute(..); .......... AttributeCertificateImpl attrcert = attrCertGen.generate(); // In order to write the object into the output stream or encode the object // do the following attrcert.writeObject(AkentiOutputStream& stream);

AttributeCertGenerator()
Constructs this object

~AttributeCertGenerator()
Destroys this object

void setAttribute(const string& attribute)
Sets the attributes for a particular certificate. An example of an attribute could be "group".
Parameters:
attribute - the attribute of the Akenti Certificate

void setValue(const string& value)
Sets the value for the attribute.
Parameters:
value - the value associated with the attribute

void setPrincipal(const AkentiPrincipal& principal)
Sets the principal for the Akenti Certificate.
Parameters:
principal - the principal of the Akenti Certificate

void addAkentiExtension(const AkentiExtension& extensions)
Sets the Akenti Extensions to this certificate
Parameters:
extensions - the extensions for this certificate

AttributeCertificateImpl()
Default Constructor

~AttributeCertificateImpl()
Default destructor

AttributeCertificateImpl* newInstance() const

string getHashString() const

const string& getAttribute() const

const string& getValue() const

const vector <AkentiExtension> & getAkentiExtensions() const

const AkentiPrincipal& getPrincipal() const

void doWrite(AkentiOutputStream& drain) const

void doRead(AkentiInputStream& source)

void doParamString(ostream& os) const


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari Xiang Sun
Version:
1.1 00/05/25
See Also:
AkentiExtension
AkentiPrincipal
AttributeCertGenerator

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