Yate
|
Content crypto data. More...
#include <yatejingle.h>
Public Member Functions | |
JGCrypto (const char *tag="1", const char *suite=0, const char *key=0, const char *session=0) | |
JGCrypto (const XmlElement *xml) | |
XmlElement * | toXml () const |
void | fromXml (const XmlElement *xml) |
Static Public Member Functions | |
static XmlElement * | buildEncryption (const ObjList &list, bool required) |
static void | decodeEncryption (const XmlElement *xml, ObjList &list, bool &required) |
Public Attributes | |
String | m_suite |
String | m_keyParams |
String | m_sessionParams |
Content crypto data.
This class holds a content description's crypto data. The tag is kept in the String component
JGCrypto | ( | const char * | tag = "1" , |
const char * | suite = 0 , |
||
const char * | key = 0 , |
||
const char * | session = 0 |
||
) | [inline] |
Constructor
tag | The tag parameter |
suite | The crypto-suite paramter |
key | The key-params parameter |
session | The session-param parameter |
JGCrypto | ( | const XmlElement * | xml | ) | [inline] |
Constructor. Build this element from a received element
xml | The received xml element |
static XmlElement* buildEncryption | ( | const ObjList & | list, |
bool | required | ||
) | [static] |
Build an 'encryption' element from a list of crypto objects
list | The list of crypto objects |
required | True if encryption is required |
static void decodeEncryption | ( | const XmlElement * | xml, |
ObjList & | list, | ||
bool & | required | ||
) | [static] |
Decode an 'encryption' element. Clear the list before starting
xml | The element to decode |
list | The list to be filled with crypto objects |
required | Variable to be filled with the value of the 'required' attribute |
void fromXml | ( | const XmlElement * | xml | ) |
Build this element from a received element
xml | The received xml element |
XmlElement* toXml | ( | ) | const |
Create a 'crypto' element from this object