namespace Akenti class UseCondCertificateImpl : public AkentiCertificateImpl

Class UseCondCertificateImpl is an implementation class for AkentiCertificate

Inheritance:


Public Methods

UseCondCertGenerator ()
Creates this object
~UseCondCertGenerator ()
Destroys this object
void setResource (const string& resource)
Sets the resource
void setLocalScope (bool scope)
void setUseCondition (const UseCondition& useCondition)
void setEnable (bool enable)
void setActions (const vector& actions)
void setSubjectCAS (const vector<DistinguishedName>& subjectCAS)
UseCondCertificateImpl ()
Default constructor
~UseCondCertificateImpl ()
Default destructor
UseCondCertificateImpl* newInstance () const
const string& getResource () const
Returns the resource value from this certificate
bool getScope () const
Returns the scope value from this certificate
const UseCondition& getUseCondition () const
Returns the useCondition value from this certificate
bool getEnable () const
Returns the enable value from this certificate
const vector & getActions () const
Returns the actions list from this certificate
const vector <Attribute> & getAttributes () const
Returns the attribute list from this certificate
bool containsSubjectCA (const DistinguishedName& ca) const
const vector <DistinguishedName> & getSubjectCAs () const
Returns the subjectCA list from this certificate
string getHashString () const

Protected Methods

void doWrite (AkentiOutputStream& drain) const
Writes this certificate object into an AkentiOutputStream
void doRead (AkentiInputStream& source)
Reads this certificate object from an AkentiInputStream
void doParamString (ostream& os) const
Displays the information contained in this certificate in a user friendly manner, for debugging purposes

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 UseCondCertificateImpl is an implementation class for AkentiCertificate.

The format for an use-condition certificate is:

UseCondCertificateImpl { 

resource             name of resource UC applies to 
isScopeLocal         does UC only apply locally or to subtree 
enable               all users must statifsy this UC, provides veto
                           over other use-condition certificates
useCondition         expression that user must satisfy 
SubjectCertAuthority vector of CA's that are trusted for this resource 
Signature            SignatureInfo
} 

These certificates are mainly used by the stakeholders (resource owners) in order to provide constraints on the access/usage of their resources.

Reading a UC certificate from a stream
AkentiCertificate cert = AkentiCertificateFactory.getInstance("UseCondCert"); cert.readObject(stream);
Generating a UC certificate
UseCondCertGenerator gen; gen.setGuarantor(..);
gen.setAttribute(..);
...
AkentiCertificate cert = gen.sign(...)

UseCondCertGenerator()
Creates this object

~UseCondCertGenerator()
Destroys this object

void setResource(const string& resource)
Sets the resource. resource the value for the resource

void setLocalScope(bool scope)

void setUseCondition(const UseCondition& useCondition)

void setEnable(bool enable)

void setActions(const vector& actions)

void setSubjectCAS(const vector<DistinguishedName>& subjectCAS)

UseCondCertificateImpl()
Default constructor

~UseCondCertificateImpl()
Default destructor

UseCondCertificateImpl* newInstance() const

const string& getResource() const
Returns the resource value from this certificate
Returns:
s string the resource of this certificate

bool getScope() const
Returns the scope value from this certificate
Returns:
s bool indicates

const UseCondition& getUseCondition() const
Returns the useCondition value from this certificate
Returns:
s UseCondition the of this certificate

bool getEnable() const
Returns the enable value from this certificate
Returns:
s bool

const vector & getActions() const
Returns the actions list from this certificate
Returns:
s vector the actions of this certificate

const vector <Attribute> & getAttributes() const
Returns the attribute list from this certificate
Returns:
s vector the action of this certificate
See Also:
Attribute

bool containsSubjectCA(const DistinguishedName& ca) const

const vector <DistinguishedName> & getSubjectCAs() const
Returns the subjectCA list from this certificate
Returns:
s vector the subjectCA list of this certificate
See Also:
AkentiPrincipal

string getHashString() const

void doWrite(AkentiOutputStream& drain) const
Writes this certificate object into an AkentiOutputStream
Throws:
IOException if writing fails
Parameters:
drain - the AkentiOutputStream this certificate writes to
See Also:
AkentiOutputStream
IOException

void doRead(AkentiInputStream& source)
Reads this certificate object from an AkentiInputStream
Throws:
ParsingException if parsing the distinguished name fails
IOException if reading fails
Error if have no issuers
Parameters:
source - the AkentiInputStream being read to this certificate
See Also:
AkentiInputStream
DistinguishedName
ParsingException
IOException
Error

void doParamString(ostream& os) const
Displays the information contained in this certificate in a user friendly manner, for debugging purposes
Returns:
s string provides the information of this certificate


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/25
See Also:
AkentiPrincipal
UtcTime
SignatureInfo
Attribute
AkentiCertificateImpl
UseCondCertGenerator

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