Yate
Public Types | Public Member Functions | Static Public Attributes

JIDFeatureSasl Class Reference

A JID's SASL feature. More...

#include <xmpputils.h>

Inheritance diagram for JIDFeatureSasl:
JIDFeature RefObject GenObject

List of all members.

Public Types

enum  Mechanism { MechNone = 0x00, MechMD5 = 0x01, MechSHA1 = 0x02, MechPlain = 0x04 }

Public Member Functions

 JIDFeatureSasl (int mech, bool required=false)
int mechanism () const
bool mechanism (Mechanism mech) const
 operator XMPPNamespace::Type ()

Static Public Attributes

static TokenDict s_authMech []

Detailed Description

A JID's SASL feature.

This class holds a JID SASL feature (authentication methods)


Member Enumeration Documentation

enum Mechanism

Mechanisms used to authenticate a stream


Constructor & Destructor Documentation

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

Constructor

Parameters:
mechAuthentication mechanisms used by the JID
requiredRequired flag

Member Function Documentation

int mechanism ( ) const [inline]

Get the authentication mechanisms used by the JID

Returns:
The authentication mechanisms used by the JID
bool mechanism ( Mechanism  mech) const [inline]

Check if a given mechanism is allowed

Returns:
True if the given mechanism is allowed
operator XMPPNamespace::Type ( ) [inline]

XMPPNamespace::Type conversion operator

Reimplemented from JIDFeature.


Member Data Documentation

TokenDict s_authMech[] [static]

Authentication mechanism names


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