IAX2Encryption Class Reference

#include <remote.h>

List of all members.

Public Member Functions

 IAX2Encryption ()
void SetEncryptionOn (PBoolean newState=PTrue)
void SetEncryptionKey (PString &newKey)
void SetChallengeKey (PString &newKey)
const PString & EncryptionKey () const
const PString & ChallengeKey () const
const PBoolean IsEncrypted () const

Protected Member Functions

void CalculateAesKeys ()

Protected Attributes

PString encryptionKey
PString challengeKey
PBoolean encryptionEnabled


Detailed Description

A class that holds the state variables on encryption - is it on, and the two keys.


Constructor & Destructor Documentation

IAX2Encryption::IAX2Encryption (  ) 

Constructor, which sets encrytpion to the default value of "OFF"


Member Function Documentation

void IAX2Encryption::SetEncryptionOn ( PBoolean  newState = PTrue  ) 

Set the flag that indicates this communication session is all encrypted..

void IAX2Encryption::SetEncryptionKey ( PString &  newKey  ) 

Set the password/key used in encryption process

void IAX2Encryption::SetChallengeKey ( PString &  newKey  ) 

Set the challenge used in encryption process

const PString& IAX2Encryption::EncryptionKey (  )  const

Get the value of the encrption key - or password key

const PString& IAX2Encryption::ChallengeKey (  )  const

Get the value of the challenge key

const PBoolean IAX2Encryption::IsEncrypted (  )  const

Report if the encryption is enabled (or turned on)

void IAX2Encryption::CalculateAesKeys (  )  [protected]

Do the calculation of the encrypt and decrypt AES 128 keys. If neither, or only 1 of the encrypt/challenge keys are defined, do nothing


Member Data Documentation

PString IAX2Encryption::encryptionKey [protected]

string to use for decryption/encryption of this frame

PString IAX2Encryption::challengeKey [protected]

string to use for decryption/encryption of this frame

PBoolean IAX2Encryption::encryptionEnabled [protected]

Flag to specify if encryption is happening


The documentation for this class was generated from the following file:
Generated on Mon Sep 15 11:49:36 2008 for OPAL by  doxygen 1.5.1