Yosokumo::DigestRequest Class Reference

Provides a method to digest (using HMAC) and encode (using Base64) an input message. More...

#include <DigestRequest.h>

List of all members.

Public Types

enum  { ENCODED_LEN = 88 }
 

Length of the encoded digest.

More...

Static Public Member Functions

static std::string makeDigest (const std::string &message, const std::vector< uint8_t > &key) throw (ServiceException)
 Make an encoded digest of a message.

Detailed Description

Provides a method to digest (using HMAC) and encode (using Base64) an input message.

Definition at line 20 of file DigestRequest.h.


Member Enumeration Documentation

anonymous enum

Length of the encoded digest.

Enumerator:
ENCODED_LEN 

Definition at line 27 of file DigestRequest.h.


Member Function Documentation

std::string DigestRequest::makeDigest ( const std::string &  message,
const std::vector< uint8_t > &  key 
) throw (ServiceException) [static]

Make an encoded digest of a message.

Parameters:
message the input message to encode.
key the key to use to digest the input message. It must be exactly 64 bytes in length.
Returns:
the digested, encoded key. It is exactly 88 characters long.
Exceptions:
ServiceException if the input key length is not correct.
ServiceException if there is any problem encoding the message.

Definition at line 15 of file DigestRequest.cpp.


The documentation for this class was generated from the following files:
Generated on Mon May 13 09:19:11 2013 for C++ Yosokumo API by  doxygen 1.6.3