PolicyForClient Class Reference

Policy used for FADE client. More...

#include <PolicyForClient.h>

List of all members.

Public Member Functions

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

Detailed Description

Policy used for FADE client.


Constructor & Destructor Documentation

PolicyForClient::PolicyForClient ( const string &  policyName,
int  keyManagerID = 0 
)
Parameters:
policyName The name of the policy
keyManagerID The ID of the key manager used
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
bool PolicyForClient::revoke (  )  const

Revoke this policy

Returns:
True if successful, otherwise false
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 Enumerations Enumerator Defines

Generated on Tue Jul 19 17:22:43 2011 for FADE by  doxygen 1.6.1