namespace Akenti class Attribute : public AkentiObject An attribute consists of a name, a value, and one or more issuers
| | Attribute () Default Constrictor |
| | Attribute (const string& name, const string& value, const DistinguishedName& ca) Constructs an X509 attribute |
| | Attribute (const string& name, const string& value, const vector<DistinguishedName>& cas) Constructs an X509 attribute |
| | Attribute (const string& name, const string& value, const AkentiPrincipal& issuer) Constructs a generic attribute |
| | Attribute (const string& name, const string& value, const vector<AkentiPrincipal>& issuers) Constructs a generic attribute |
| | operator== (const Attribute& attribute) const Return true if this object is equal to the Attribute object specified by attribute |
| | getName () const Returns the name of this attribute |
| | getValue () const Returns the value of this attribute |
| | isX509Attribute () const Returns true if this is an X509 attribute |
| | getIssuers () const Return the issuers of this generic attribute |
| | getCAS () const Return the cas of this x509 attribute |
| | numOfIssuers () const Returns the number of issuers |
| | writeObject (AkentiOutputStream& drain) const Writes this object to the AkentiOutputStream object specified by drain |
| | readObject (AkentiInputStream& source) Reads this from an AkentiInputStream object specified by source |
| | paramString () const Used for debugging |
An attribute consists of a name, a value, and one or more issuers.
A generic attribute has at least one issuer while an X509 attribute
has only one issuer.
Attribute {
bool isX509;
string name;
string value;
vector cas; // used for X509 attributes
vector issuers; // used for generic attributes
}
The writeObject output is:
For a generic attribute:
0 name value size issuers[0] ... issuers[size-1]
For an X509 attribute:
1 name value size cas[0]...cas[size-1]
Attribute(const string& name, const string& value, const DistinguishedName& ca)
Error if name or value are empty strings
value - string value of this attribute
ca - string ca of this attribute
ParsingException
Error
Attribute(const string& name, const string& value, const vector<DistinguishedName>& cas)
value - string value of this attribute
ca - DistinguishedName ca of this attribute
Error
Attribute(const string& name, const string& value, const AkentiPrincipal& issuer)
value - string value of this attribute
issuer - AkentiPrincipal issuer of this attribute
Error
Attribute(const string& name, const string& value, const vector<AkentiPrincipal>& issuers)
Error if the issuers' size is equal to zero
value - string value of this attribute
issuers - vectorAkentiPrincipal> a list of
issuers of this attribute
Error
bool operator==(const Attribute& attribute) const
const string& getName() const
const string& getValue() const
bool isX509Attribute() const
const vector <AkentiPrincipal> & getIssuers() const
const vector <DistinguishedName> & getCAS() const
int numOfIssuers() const
void writeObject(AkentiOutputStream& drain) const
AkentiOutputStream
IOException
void readObject(AkentiInputStream& source)
IOException if reading from AkentiInputStream fails
ParsingException if parsing distinguished name fails
AkentiInputStream
DistinguishedName
Error
ParsingException
IOException
string paramString() const
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