SharedSecret Class Reference

#include <SharedSecret.h>

Inheritance diagram for SharedSecret:

UtlString UtlContainable

List of all members.


Detailed Description

Reads a shared secret value from the domain configuration.

To use the shared secret from the configuration:

 // read the domain configuration
 OsConfigDb domainConfiguration;
 domainConfiguration.loadFromFile(SipXecsService::domainConfigPath());

 // get the shared secret for generating signatures
 SharedSecret signingSecret(domainConfiguration);

 // generate a hash that signs the (existing) value
 NetMd5Codec signature;

 signature.hash(signingSecret);
 signature.hash(value);

 UtlString signedValue(value);
 signature.appendHashValue(signedValue);

See also:
SipXecsService::domainConfigPath

OsConfigDb::loadFromFile

NetMd5Codec


Public Member Functions

 SharedSecret (OsConfigDb &domainConfigDb)
 constructor
virtual ~SharedSecret ()
 destructor

Constructor & Destructor Documentation

SharedSecret ( OsConfigDb domainConfigDb  ) 

constructor

Note:
This constructor asserts if there is not a valid secret in the configuration file

~SharedSecret (  )  [virtual]

destructor


Online Library Docs

sipXecs home page

Version 4.2.1-018930 2010-07-31T01:13:23 build16 abuild