Yate
Public Member Functions | Static Public Member Functions | Public Attributes
JGCrypto Class Reference

Content crypto data. More...

#include <yatejingle.h>

Inheritance diagram for JGCrypto:
String GenObject

List of all members.

Public Member Functions

 JGCrypto (const char *tag="1", const char *suite=0, const char *key=0, const char *session=0)
 JGCrypto (const XmlElement *xml)
XmlElementtoXml () const
void fromXml (const XmlElement *xml)

Static Public Member Functions

static XmlElementbuildEncryption (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

Detailed Description

Content crypto data.

This class holds a content description's crypto data. The tag is kept in the String component


Constructor & Destructor Documentation

JGCrypto ( const char *  tag = "1",
const char *  suite = 0,
const char *  key = 0,
const char *  session = 0 
) [inline]

Constructor

Parameters:
tagThe tag parameter
suiteThe crypto-suite paramter
keyThe key-params parameter
sessionThe session-param parameter
JGCrypto ( const XmlElement xml) [inline]

Constructor. Build this element from a received element

Parameters:
xmlThe received xml element

Member Function Documentation

static XmlElement* buildEncryption ( const ObjList list,
bool  required 
) [static]

Build an 'encryption' element from a list of crypto objects

Parameters:
listThe list of crypto objects
requiredTrue if encryption is required
Returns:
XmlElement pointer or 0 if the list is empty
static void decodeEncryption ( const XmlElement xml,
ObjList list,
bool &  required 
) [static]

Decode an 'encryption' element. Clear the list before starting

Parameters:
xmlThe element to decode
listThe list to be filled with crypto objects
requiredVariable to be filled with the value of the 'required' attribute
void fromXml ( const XmlElement xml)

Build this element from a received element

Parameters:
xmlThe received xml element
XmlElement* toXml ( ) const

Create a 'crypto' element from this object

Returns:
Valid XmlElement pointer

The documentation for this class was generated from the following file: