class UseCondCertificateImpl

These certificates are mainly used by the stakeholders or resource owners to place a use condition on the access/usage of a resource.

Inheritance:


Public Methods

[more] UseCondCertificateImpl ()
Default constructor
[more] ~UseCondCertificateImpl ()
Default destructor
[more]string getHashString () const
Returns a string whose hash will be used to locate this certificate
[more]const string& getResource () const
Returns the name of the resource.
[more]bool isScopeLocal () const
Returns true if this certificate does not apply to sub resources
[more]bool isCritical () const
Returns true if this certificate must be satisfied
[more]const Condition& getCondition () const
Returns the Condition.
[more]const string& getConstraint () const
[more]const vector<AttributeInfo> & getAttributeInfos () const
Returns the list of AttributeInfos.
[more]const vector<string> & getActions () const
Returns the list of actions.

Protected Methods

[more]UseCondCertificateImpl* newInstance () const
[more]void doWrite (AkentiOutputStream& drain) const
Writes this certificate object into an AkentiOutputStream
[more]void doRead (AkentiInputStream& source)
Reads this certificate object from an AkentiInputStream
[more]void doToXML (DOMElement* ucCertInfo) const
[more]void doFromXML (const DOMElement* ucCertInfo)
[more]void doParamString (ostream& os) const
For debugging
[more]void doToText (int indentAmt, ostream& os) const


Inherited from AkentiCertificateImpl:

Public Methods

ovirtual string hashCode() const
oconst string& getType() const
obool hasType(const string& type) const
oint getVersionNumber() const
oconst string& getUniqueID() const
oconst AkentiIssuer& getIssuer() const
oconst UtcTime& getNotBefore() const
oconst UtcTime& getNotAfter() const
obool verify(const PublicKey& publicKey) const
ovirtual string getSignable() const
oconst string& getCanonAlg() const
oconst string& getSignatureAlg() const
oconst string& getSignature() const
obool checkValidity(const UtcTime& utcTime) const
obool checkValidity() const
ostring paramString() const
ostring toText(int indentAmt = 0) const
ostring toLogString() const


Documentation

These certificates are mainly used by the stakeholders or resource owners to place a use condition on the access/usage of a resource. They also specify actions that will be awarded if the condition is satisfied.

The encoding of use-condition certificate is:

UseCondCertificateImpl { 
  *     type             // UseCondition
  *     version          // certificate's version number
  *     id               // certificate's unique id
  *     issuer           // issuer and signer of certificate
  *     notBefore        // start validity date
  *     notAfter         // end validity date
  *     signatureAlg     // name of algorithm used to sign this certificate
  *     resource         // name of resource UC applies to 
  *     localScope
  *     critical
  *     condition        // a use-condition that user must satisfy 
  *     actions          // actions awarded to the user if condition is 
  *                      //   satisfied 
  *     signature        // digital signature of the certificate
  * } 

Generating a UC certificate

UseCondCertGenerator gen;

gen.setIssuer(..); gen.setAttributeInfos(..); ... gen.sign(...)

AkentiCertificate cert = gen.generate()

o UseCondCertificateImpl()
Default constructor

o ~UseCondCertificateImpl()
Default destructor

ostring getHashString() const
Returns a string whose hash will be used to locate this certificate

oconst string& getResource() const
Returns the name of the resource.

Returns:
string the resource of this certificate

obool isScopeLocal() const
Returns true if this certificate does not apply to sub resources

obool isCritical() const
Returns true if this certificate must be satisfied

oconst Condition& getCondition() const
Returns the Condition.

See Also:
Condition

oconst string& getConstraint() const

See Also:
getConstraint()

oconst vector<AttributeInfo> & getAttributeInfos() const
Returns the list of AttributeInfos.

See Also:
getAttributeInfos()

oconst vector<string> & getActions() const
Returns the list of actions.

oUseCondCertificateImpl* newInstance() const

ovoid 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

ovoid 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

ovoid doToXML(DOMElement* ucCertInfo) const

ovoid doFromXML(const DOMElement* ucCertInfo)

ovoid doParamString(ostream& os) const
For debugging

ovoid doToText(int indentAmt, ostream& os) const


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

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.