sipxportlib  Version 3.3
Public Member Functions | List of all members
OsConfigEncryption Class Referenceabstract

#include <OsConfigEncryption.h>

Public Member Functions

virtual UtlBoolean isEncrypted (OsConfigDb *cfg, const char *buffer, int buffLen)=0
 Test a buffer if it's actually encrypted. More...
 
virtual UtlBoolean isNormallyEncrypted (OsConfigDb *cfg)=0
 Is this profile typically encrypted, decision usually based from cfg->getIndentyLabel() More...
 
virtual OsStatus encrypt (OsConfigDb *cfg, OsEncryption *encryption, char *buffer, int buffLen)=0
 Handle the details of encrypting, look in OsEncryption instance for results. More...
 
virtual OsStatus decrypt (OsConfigDb *cfg, OsEncryption *encryption, char *buffer, int buffLen)=0
 Handle the details of decrypting, look in OsEncryption instance for results. More...
 
virtual UtlBoolean isWriteEncryptedEnabled ()=0
 Is writing profile encrypted on/off at a system level. More...
 
virtual ~OsConfigEncryption ()
 If not NULL, a binary prefix header on files to tell if files are encrypted or not. More...
 

Detailed Description

OsConfigDb consults a this class to handle all the details of encrypting and decrypting files and buffers w/o knowing the details. Systems provide an implemenation of this and in the case of the phone, determines which profiles should be encrypted, what the key is and can configure the OsEncryption instance

Constructor & Destructor Documentation

virtual ~OsConfigEncryption ( )
inlinevirtual

If not NULL, a binary prefix header on files to tell if files are encrypted or not.

Member Function Documentation

virtual UtlBoolean isEncrypted ( OsConfigDb cfg,
const char *  buffer,
int  buffLen 
)
pure virtual

Test a buffer if it's actually encrypted.

virtual UtlBoolean isNormallyEncrypted ( OsConfigDb cfg)
pure virtual

Is this profile typically encrypted, decision usually based from cfg->getIndentyLabel()

virtual OsStatus encrypt ( OsConfigDb cfg,
OsEncryption encryption,
char *  buffer,
int  buffLen 
)
pure virtual

Handle the details of encrypting, look in OsEncryption instance for results.

virtual OsStatus decrypt ( OsConfigDb cfg,
OsEncryption encryption,
char *  buffer,
int  buffLen 
)
pure virtual

Handle the details of decrypting, look in OsEncryption instance for results.

virtual UtlBoolean isWriteEncryptedEnabled ( )
pure virtual

Is writing profile encrypted on/off at a system level.