struct Util

This class provides a collection of static methods.

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


Documentation

This class provides a collection of static methods.

ostatic 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.

ostatic 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".

ostatic string createFileName(const string& digest)
Returns a file name used to locate certificates.

Parameters:
- digest the string used to create the digest

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

ostatic 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.

Parameters:
indentAmt - the amount of spaces for indenting
str - the string needs to be format
Returns:
the format text string

ostatic 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

ostatic 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 HTML hierarchy of classes or Java



This page was generated with the help of DOC++.