class JGCrypto

Content crypto data. More...

Full nameTelEngine::JGCrypto
Definition#include <libs/yjabber/yatejingle.h>
InheritsTelEngine::String [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods

Public Members


Detailed Description

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

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

JGCrypto

Constructor

Parameters:
tagThe tag parameter
suiteThe crypto-suite paramter
keyThe key-params parameter
sessionThe session-param parameter

inline  JGCrypto (const XmlElement* xml)

JGCrypto

Constructor. Build this element from a received element

Parameters:
xmlThe received xml element

XmlElement*  toXml ()

toXml

[const]

Create a 'crypto' element from this object

Returns: Valid XmlElement pointer

void  fromXml (const XmlElement* xml)

fromXml

Build this element from a received element

Parameters:
xmlThe received xml element

XmlElement*  buildEncryption (const ObjList& list, bool required)

buildEncryption

[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

void  decodeEncryption (const XmlElement* xml, ObjList& list, bool& required)

decodeEncryption

[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

String m_suite

m_suite

String m_keyParams

m_keyParams

String m_sessionParams

m_sessionParams


Generated by: paulc on bussard on Tue Apr 12 17:15:21 2011, using kdoc 2.0a54.