messageDigestFactory Class Reference

Creates instances of message digest algorithms. More...

List of all members.

Classes

class  digestAlgorithmFactory
class  digestAlgorithmFactoryImpl

Public Member Functions

template<class E >
void registerAlgorithm (const string &name)
ref< messageDigestcreate (const string &name)
const std::vector< stringgetSupportedAlgorithms () const

Static Public Member Functions

static messageDigestFactorygetInstance ()

Detailed Description

Creates instances of message digest algorithms.


Member Function Documentation

ref< messageDigest > create ( const string name  ) 

Create a new algorithm instance from its name.

Parameters:
name algorithm name (eg. "md5")
Returns:
a new algorithm instance for the specified name
Exceptions:
exceptions::no_digest_algorithm_available if no algorithm is registered with this name
messageDigestFactory * getInstance (  )  [static]
const std::vector< string > getSupportedAlgorithms (  )  const

Return a list of supported digest algorithms.

Returns:
list of supported digest algorithms
void registerAlgorithm ( const string name  ) 

Register a new digest algorithm by its name.

Parameters:
name algorithm name

References stringUtils::toLower().


The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2