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:
mech Authentication mechanisms used by the JID
required Required flag


Member Function Documentation

bool mechanism ( Mechanism  mech  )  const [inline]

Check if a given mechanism is allowed

Returns:
True if the given mechanism is allowed

int mechanism (  )  const [inline]

Get the authentication mechanisms used by the JID

Returns:
The authentication mechanisms used by the JID

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:

Generated on Sun Dec 7 21:36:13 2008 for Yate by  doxygen 1.5.7.1