PolicyForClient Class Reference

Policy used for FADE client. More...

#include <PolicyForClient.h>

List of all members.

Public Member Functions

 PolicyForClient (const string &policyName)
 ~PolicyForClient ()
string getPolicyName () const
void setPolicyName (const string &policyName)
int getRSASize () const
bool encrypt (unsigned char *key) const
bool decrypt (unsigned char *key) const

Detailed Description

Policy used for FADE client.


Constructor & Destructor Documentation

PolicyForClient::PolicyForClient ( const string &  policyName  ) 
Parameters:
policyName The name of the policy
PolicyForClient::~PolicyForClient (  )  [inline]

Member Function Documentation

bool PolicyForClient::decrypt ( unsigned char *  key  )  const

Decrypt a key

Parameters:
key The key to be decrypted
Return values:
key The decrypted key
Returns:
True if successful, otherwise false
bool PolicyForClient::encrypt ( unsigned char *  key  )  const

Encrypt a key

Parameters:
key The key to be encrypted
Return values:
key The encrypted key
Returns:
True if successful, otherwise false
string PolicyForClient::getPolicyName (  )  const [inline]

Get the name of the policy

Returns:
The name of the policy
int PolicyForClient::getRSASize (  )  const [inline]

Get RSA size used in OpenSSL

Returns:
RSA size
void PolicyForClient::setPolicyName ( const string &  policyName  )  [inline]

Set the name of the policy

Parameters:
policyName The name of the policy

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Defines

Generated on Tue Aug 31 11:02:41 2010 for FADE by  doxygen 1.6.1