Ice 3.7 C++98 API Reference
|
This class represents a DistinguishedName, similar to the Java type X500Principal and the .NET type X500DistinguishedName. More...
#include <IceSSL/IceSSL.h>
Public Member Functions | |
DistinguishedName (const std::list< std::pair< std::string, std::string > > &) | |
Creates a DistinguishedName from a list of RDN pairs, where each pair consists of the RDN's type and value. More... | |
DistinguishedName (const std::string &name) | |
Creates a DistinguishedName from a string encoded using the rules in RFC2253. More... | |
bool | match (const DistinguishedName &dn) const |
Performs a partial match with another DistinguishedName. More... | |
bool | match (const std::string &dn) const |
Performs a partial match with another DistinguishedName. More... | |
operator std::string () const | |
Encodes the DN in RFC2253 format. More... | |
Friends | |
bool | operator< (const DistinguishedName &, const DistinguishedName &) |
Performs an exact match. More... | |
bool | operator== (const DistinguishedName &, const DistinguishedName &) |
Performs an exact match. More... | |
This class represents a DistinguishedName, similar to the Java type X500Principal and the .NET type X500DistinguishedName.
For comparison purposes, the value of a relative distinguished name (RDN) component is always unescaped before matching, therefore "ZeroC, Inc." will match ZeroC\, Inc.
toString() always returns exactly the same information as was provided in the constructor (i.e., "ZeroC, Inc." will not turn into ZeroC\, Inc.).
|
explicit |
Creates a DistinguishedName from a string encoded using the rules in RFC2253.
name | The encoded distinguished name. |
ParseException | if parsing fails. |
|
explicit |
Creates a DistinguishedName from a list of RDN pairs, where each pair consists of the RDN's type and value.
For example, the RDN "O=ZeroC" is represented by the pair ("O", "ZeroC").
ParseException | if parsing fails. |
bool IceSSL::DistinguishedName::match | ( | const DistinguishedName & | dn | ) | const |
Performs a partial match with another DistinguishedName.
dn | The name to be matched. |
bool IceSSL::DistinguishedName::match | ( | const std::string & | dn | ) | const |
Performs a partial match with another DistinguishedName.
dn | The name to be matched. |
IceSSL::DistinguishedName::operator std::string | ( | ) | const |
Encodes the DN in RFC2253 format.
|
friend |
Performs an exact match.
The order of the RDN components is important.
|
friend |
Performs an exact match.
The order of the RDN components is important.