struct Util

This class provides a collection of static methods

~ParseResourceUtil()
static bool parseResource(const string& resource, vector& resources)
static bool compare(const DistinguishedName& dn1, const DistinguishedName& dn2)
Provides a comparison of each value, attribute pairs between two distinguished names
static string getHashDN(const DistinguishedName& dn)
Returns a string that contains the value and pair used for hashing
static string createFileName(const string& digest)
Returns a file name used to locate certificates
static string createUniqueID(const string& id)
Returns hostname#id#date
static string fText(int indentAmt, const string& str)
Provides indentation and wrapping for the string
static string indent(int indentAmt)
Returns a string that contain blank spaces depending on the amount to indent
static string normalizedString(string s)
Returns a string with whitespaces removed
Util()
constructor

Documentation

This class provides a collection of static methods.
~ParseResourceUtil()

static bool parseResource(const string& resource, vector& resources)

static bool compare(const DistinguishedName& dn1, const DistinguishedName& dn2)
Provides a comparison of each value, attribute pairs between two distinguished names. The comparison of the attributes is not case sensitive.

static string getHashDN(const DistinguishedName& dn)
Returns a string that contains the value and pair used for hashing. Only the attributes below are used. "CN", "C", "O", "OU", "DC", "cn", "c", "o", "ou", "dc".

static string createFileName(const string& digest)
Returns a file name used to locate certificates.
Parameters:
digest - the string used to create the digest

static string createUniqueID(const string& id)
Returns hostname#id#date

static string fText(int indentAmt, const string& str)
Provides indentation and wrapping for the string. Processes two forms of string. One with a ':' in it, and one without. If a string has a colon and its length is greater than 70 the remaining string will wrap after the colon in the string, otherwise the string will wrap after the indentation.
Returns:
the format text string
Parameters:
indentAmt - the amount of spaces for indenting
str - the string needs to be format

static string indent(int indentAmt)
Returns a string that contain blank spaces depending on the amount to indent.
Parameters:
indentAmt - the amount of spaces for indenting

static string normalizedString(string s)
Returns a string with whitespaces removed.
Parameters:
s - the initial string with whitespaces

Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01
See Also:
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