VMime
|
Public Member Functions | |
template<class E > | |
void | registerAlgorithm (const string &name) |
shared_ptr< messageDigest > | create (const string &name) |
const std::vector< string > | getSupportedAlgorithms () const |
Static Public Member Functions | |
static messageDigestFactory * | getInstance () |
Creates instances of message digest algorithms.
shared_ptr< messageDigest > create | ( | const string & | name | ) |
Create a new algorithm instance from its name.
name | algorithm name (eg. "md5") |
exceptions::no_digest_algorithm_available | if no algorithm is registered with this name |
References stringUtils::toLower().
|
static |
const std::vector< string > getSupportedAlgorithms | ( | ) | const |
Return a list of supported digest algorithms.
void registerAlgorithm | ( | const string & | name | ) |
Register a new digest algorithm by its name.
name | algorithm name |
References stringUtils::toLower().