namespace Akenti class DistinguishedName

This is a class to hold a Distinguished Name as a set of name and value pairs

Public Methods

virtual ~CertificateRevocationListImpl ()
Deletes the object
virtual long getVersion () const
Returns the version of the CRL
virtual Principal getGuarantor () const
Returns the guarantor of the CRL
virtual string getSignature () const
Returns the signature of the CRL
virtual UtcTime getLastUpdate () const
Returns the UtcTime of the last CertificateRevocationList update time
virtual UtcTime getNextUpdate () const
Returns the UtcTime of the next CertificateRevocationList update time
virtual vector <RevokedCertificate> getRevokedCertificates () const
Returns a vector which contains the certificates have been revoked
virtual bool isRevoked (const long& serialnumber) const
Returns a boolean which specifies the revocation status of the given serial number of the certificate
virtual int isRevoked (const long& serialnumber, const UtcTime& ctime) const
Returns a int which specifies the revocation status (yes/no/unknown) of the given serial number of the certificate
DistinguishedName (const string& dn = "/CN=NO_NAME")
Constructs this object from the input distinguishedName string
~DistinguishedName ()
Deletes this object
bool containsAttributeValue (const string& attribute, const string& value) const
Checks to see if the pair of exits
const string& getValue (const string& attribute) const
Returns the value of the pair of specified by attribute
vector getValues (const string& attribute)
Returns the vector with values corresponding to the attribute
bool containsAttribute (const string& attribute) const
Returns true if the specified attribute exists in this DistinguishName
bool containsValue (const string& value) const
Returns true if the specified value exists in the pair of
int numOfOcurrences (const string& attribute) const
Returns the number of ocurrences of the specified attribute
int size () const
Returns the size of the vector pairs
bool hasMorePairs (int index) const
Returns true if the specified index is in pairs' range
const pair & getPairAt (int index) const
Returns the pair of by specified index
string toString () const
string paramString () const
Returns a string representation for DistinguishedName which is used for debugging purposes
bool operator== (const DistinguishedName& dn) const
Is true if the DN's are identical: same pairs, same values in the same order

Documentation

This is a class to hold a Distinguished Name as a set of name and value pairs. A Distinguished Name is a multi-component name used in X5.09 certifificate to uniquely identify an entity. Examples of attributes are listed below.
commonName                   "CN"
user ID                      "UID"
countryName                  "C"
localityName                 "L"
Email Address                "E"
stateOrProvinceName          "ST"
organizationName             "O"
organizationalUnitName       "OU"
Some of the attributes may have more than one value. And we allow user defined attributes
virtual ~CertificateRevocationListImpl()
Deletes the object

virtual long getVersion() const
Returns the version of the CRL

virtual Principal getGuarantor() const
Returns the guarantor of the CRL

virtual string getSignature() const
Returns the signature of the CRL

virtual UtcTime getLastUpdate() const
Returns the UtcTime of the last CertificateRevocationList update time

virtual UtcTime getNextUpdate() const
Returns the UtcTime of the next CertificateRevocationList update time

virtual vector <RevokedCertificate> getRevokedCertificates() const
Returns a vector which contains the certificates have been revoked

virtual bool isRevoked(const long& serialnumber) const
Returns a boolean which specifies the revocation status of the given serial number of the certificate.
Parameters:
serialnumber - serial number of the certificate

virtual int isRevoked(const long& serialnumber, const UtcTime& ctime) const
Returns a int which specifies the revocation status (yes/no/unknown) of the given serial number of the certificate.
Parameters:
serialnumber - the given serial number of the certificate
ctime - specified length of time

DistinguishedName(const string& dn = "/CN=NO_NAME")
Constructs this object from the input distinguishedName string. The format of the string is /NAME1=value1/NAME2=value2...
Throws:
ParsingException if unable to parse DN

~DistinguishedName()
Deletes this object

bool containsAttributeValue(const string& attribute, const string& value) const
Checks to see if the pair of exits.
Returns:
ture if pair of exits, false otherwise
Parameters:
attribute - name(s) or component
value - the value of the name(s) or component

const string& getValue(const string& attribute) const
Returns the value of the pair of specified by attribute.
Throws:
Exception if the value can not be found for the specified attribute
Parameters:
attribute -
See Also:
Pair
pairs

vector getValues(const string& attribute)
Returns the vector with values corresponding to the attribute. If there are no values for the attribute will a vector with no entries.
Throws:
Exception no value found for the attribute
Returns:
a vector of values corresponding to the specified attribute
Parameters:
attribute -

bool containsAttribute(const string& attribute) const
Returns true if the specified attribute exists in this DistinguishName

bool containsValue(const string& value) const
Returns true if the specified value exists in the pair of

int numOfOcurrences(const string& attribute) const
Returns the number of ocurrences of the specified attribute.
See Also:
attribute

int size() const
Returns the size of the vector pairs

bool hasMorePairs(int index) const
Returns true if the specified index is in pairs' range

const pair & getPairAt(int index) const
Returns the pair of by specified index

string toString() const

string paramString() const
Returns a string representation for DistinguishedName which is used for debugging purposes.
Returns:
debugging info

bool operator==(const DistinguishedName& dn) const
Is true if the DN's are identical: same pairs, same values in the same order.
Parameters:
dn - the DN that is used for comparison with this DN Returns true if equal. The order is observed but the attribute comparisons are not case sensitive.


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

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