Yate
Public Member Functions
XMPPFeatureSasl Class Reference

A SASL feature. More...

#include <xmpputils.h>

Inheritance diagram for XMPPFeatureSasl:
XMPPFeature String GenObject

List of all members.

Public Member Functions

 XMPPFeatureSasl (int mech, bool required=false)
int mechanisms () const
bool mechanism (int mech) const
virtual XmlElementbuild (bool addReq=true)

Detailed Description

A SASL feature.

This class holds a SASL feature along with authentication mechanisms


Constructor & Destructor Documentation

XMPPFeatureSasl ( int  mech,
bool  required = false 
) [inline]

Constructor

Parameters:
mechAuthentication mechanism(s)
requiredRequired flag

Member Function Documentation

virtual XmlElement* build ( bool  addReq = true) [virtual]

Build an xml element from this feature

Parameters:
addReqTrue to add the required/optional child
Returns:
XmlElement pointer or 0

Reimplemented from XMPPFeature.

bool mechanism ( int  mech) const [inline]

Check if a given mechanism is allowed

Returns:
True if the given mechanism is allowed
int mechanisms ( ) const [inline]

Get the authentication mechanisms

Returns:
The authentication mechanisms used by the JID

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