namespace Akenti class AkentiPrincipal : public AkentiObject

An AkentiPrincipal is a pair of DistinguishedName names: the first is the name that identifies an entity and the second is the name of the guarantor of that entity

Inheritance:


Public Methods

AkentiOutputStream (ostream& os)
Constructs this object given an ostream object specified by os
AkentiOutputStream& write (const char *ptr, int n)
AkentiOutputStream& operator<< (char c)
Writes a char to the underlying output stream
AkentiOutputStream& operator<< (int n)
Writes an int to the underlying output stream
AkentiOutputStream& operator<< (bool b)
Writes a bool to the underlying output stream
AkentiOutputStream& operator<< (long l)
Writes a long to the underlying output stream
AkentiOutputStream& operator<< (double d)
Writes a double to the underlying output stream
AkentiOutputStream& operator<< (const string& s)
Writes a string to the underlying output stream
AkentiOutputStream& operator<< (const UtcTime& time)
Writes a UtcTime to the underlying output stream
AkentiOutputStream& operator<< (const URL& url)
Writes a URL to the underlying output stream
AkentiOutputStream& operator<< (const DistinguishedName& dn)
Writes a DistinguishedName to the underlying output stream
AkentiOutputStream& operator<< (const AkentiObject& obj)
Writes an AkentiObject to the underlying output stream
AkentiPrincipal ()
Default Constructor
AkentiPrincipal (const DistinguishedName& name, const DistinguishedName& guarantor)
Constructs this object given the distinguished name of an entity specified by name and the distinguished name of the guarantor of this entity specified by guarantor
AkentiPrincipal (const string& name, const string& guarantor)
Constructs this object given the distinguished name of an entity specified by name and the distinguished name of the guarantor of this entity specified by guarantor
~AkentiPrincipal ()
Deletes this object
bool operator== (const AkentiPrincipal& ap) const
Return true if this object is equal to the argument specified by ap
const DistinguishedName& getName () const
Returns the distinguished name of the entity represented by this object
const DistinguishedName& getGuarantor () const
Returns the distinguished name of the guarantor of the entity reprsented by this object
void writeObject (AkentiOutputStream& drain) const
Writes this object to an AkentiOutputStream object specified by drain
void readObject (AkentiInputStream& source)
Reads this object from the AkentiInputStream object specified by source
string paramString () const
Used for debugging

Documentation

An AkentiPrincipal is a pair of DistinguishedName names: the first is the name that identifies an entity and the second is the name of the guarantor of that entity. AkentiPrincipal {
DistinguishedName name
DistinguishedNmae guarantor
}
When writing this object the blank spaces of the name are escaped by a backward slash. For example:
/C=US/ST=CA/CN=John Doe
will be written as /C=US/ST=CA/CN=John\ Doe
The writeObject output is:
nameguarantor
AkentiOutputStream(ostream& os)
Constructs this object given an ostream object specified by os. Note that the AkentiOutputStream is only valid as long as the underlying ostream is valid.
Parameters:
os - ostream the underlying output stream

AkentiOutputStream& write(const char *ptr, int n)

AkentiOutputStream& operator<<(char c)
Writes a char to the underlying output stream.
Throws:
IOException if writing fails
Returns:
this AkentiOutputStream for chaining
Parameters:
c - char to be written
See Also:
IOException

AkentiOutputStream& operator<<(int n)
Writes an int to the underlying output stream.
Throws:
IOException if writing fails
Returns:
this AkentiOutputStream for chaining
Parameters:
n - int to be written
See Also:
IOException

AkentiOutputStream& operator<<(bool b)
Writes a bool to the underlying output stream.
Throws:
IOException if writing fails
Returns:
this AkentiOutputStream for chaining
Parameters:
b - bool to be written
See Also:
IOException

AkentiOutputStream& operator<<(long l)
Writes a long to the underlying output stream.
Throws:
IOException if writing fails
Returns:
this AkentiOutputStream for chaining
Parameters:
l - long to be written
See Also:
IOException

AkentiOutputStream& operator<<(double d)
Writes a double to the underlying output stream.
Throws:
IOException if writing fails
Returns:
this AkentiOutputStream for chaining
Parameters:
d - double to be written
See Also:
IOException

AkentiOutputStream& operator<<(const string& s)
Writes a string to the underlying output stream. Blank spaces at the beginning and at the end of the string are ignored. Blanks in the middle are escaped and if there is a sequence of blanks in the middle, only one is escaped and the others are ignored. Examples: "aa bb" => "aa\\ bb" " aa bb " => "aa\\ bb" "aa bb" => "aa\\ bb"
Throws:
IOException if writing fails
Returns:
this AkentiOutputStream for chaining
Parameters:
s - string to be written

AkentiOutputStream& operator<<(const UtcTime& time)
Writes a UtcTime to the underlying output stream.
Throws:
IOException if writing fails
Returns:
this AkentiOutputStream for chaining
Parameters:
time - UtcTime to be written
See Also:
UtcTime for the external format that is used.
IOException

AkentiOutputStream& operator<<(const URL& url)
Writes a URL to the underlying output stream.
Throws:
IOException if writing fails
Returns:
this AkentiOutputStream for chaining
Parameters:
url - URL to be written
See Also:
URL for the external format that is used.
IOException

AkentiOutputStream& operator<<(const DistinguishedName& dn)
Writes a DistinguishedName to the underlying output stream.
Throws:
IOException if writing fails
Returns:
this AkentiOutputStream for chaining
Parameters:
dn - DistinguishedName to be written
See Also:
DistinguishedName for the external format that is used.
IOException

AkentiOutputStream& operator<<(const AkentiObject& obj)
Writes an AkentiObject to the underlying output stream. Calls the writeObject method on the object handing it the AkentiOutputStream.
Throws:
IOException if writing fails
Returns:
this AkentiOutputStream for chaining
Parameters:
obj - AkentiObject to be written
See Also:
AkentiObject
IOException

AkentiPrincipal()
Default Constructor

AkentiPrincipal(const DistinguishedName& name, const DistinguishedName& guarantor)
Constructs this object given the distinguished name of an entity specified by name and the distinguished name of the guarantor of this entity specified by guarantor.
Throws:
ParsingException if either arg is a bad distinguihed name
Parameters:
name - DistinguishedName name of an entity
guarantor - DistinguishedName name of the guarantor
See Also:
DistinguishedName

AkentiPrincipal(const string& name, const string& guarantor)
Constructs this object given the distinguished name of an entity specified by name and the distinguished name of the guarantor of this entity specified by guarantor.
Throws:
ParsingException if either argument is invalid
Error if either argument is an empty string
Parameters:
name - string name of an entity
guarantor - string name of the guarantor
See Also:
DistinguishedName

~AkentiPrincipal()
Deletes this object

bool operator==(const AkentiPrincipal& ap) const
Return true if this object is equal to the argument specified by ap.
Returns:
true if equal, false otherwise

const DistinguishedName& getName() const
Returns the distinguished name of the entity represented by this object.
Returns:
the distinguished name of this principal

const DistinguishedName& getGuarantor() const
Returns the distinguished name of the guarantor of the entity reprsented by this object.
Returns:
the distinguished name of the guarantor

void writeObject(AkentiOutputStream& drain) const
Writes this object to an AkentiOutputStream object specified by drain.
Throws:
IOException if writing to the stream fails
Parameters:
drain - AkentiOutputStream used to write this object
See Also:
AkentiOutputStream
IOException

void readObject(AkentiInputStream& source)
Reads this object from the AkentiInputStream object specified by source.
Throws:
ParsingException if parsing fails
IOException if reading from the stream fails
Parameters:
source - AkentiInputStream used to read the object
See Also:
AkentiInputStream
ParsingException
IOException

string paramString() const
Used for debugging.
Returns:
a string that can be used for debugging
See Also:
AkentiObject


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari Xiang Sun
Version:
1.1 00/05/01
See Also:
AkentiObject
DistinguishedName

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