VMime
SASLAuthenticator Class Referenceabstract
Inheritance diagram for SASLAuthenticator:
Collaboration diagram for SASLAuthenticator:

Public Member Functions

virtual const std::vector
< shared_ptr< SASLMechanism > > 
getAcceptableMechanisms (const std::vector< shared_ptr< SASLMechanism > > &available, shared_ptr< SASLMechanism > suggested) const =0
 
virtual void setSASLSession (shared_ptr< SASLSession > sess)=0
 
virtual void setSASLMechanism (shared_ptr< SASLMechanism > mech)=0
 
- Public Member Functions inherited from authenticator
virtual const string getUsername () const =0
 
virtual const string getPassword () const =0
 
virtual const string getHostname () const =0
 
virtual const string getAnonymousToken () const =0
 
virtual const string getServiceName () const =0
 
virtual void setService (shared_ptr< net::service > serv)=0
 

Additional Inherited Members

- Protected Member Functions inherited from object
 object ()
 
 object (const object &)
 
objectoperator= (const object &)
 
virtual ~object ()
 

Detailed Description

SASL-aware authenticator.

Usually, you should not inherit from this class, but instead from the more convenient defaultSASLAuthenticator class.

Member Function Documentation

virtual const std::vector<shared_ptr <SASLMechanism> > getAcceptableMechanisms ( const std::vector< shared_ptr< SASLMechanism > > &  available,
shared_ptr< SASLMechanism suggested 
) const
pure virtual

This method is called to allow the client to choose the authentication mechanisms that will be used.

By default, the most secure mechanisms are chosen.

Parameters
availableavailable mechanisms
suggestedsuggested mechanism (or NULL if the system could not suggest a mechanism)
Returns
ordered list of mechanism to use among the available mechanisms (from the first to try to the last)

Implemented in defaultSASLAuthenticator.

virtual void setSASLMechanism ( shared_ptr< SASLMechanism mech)
pure virtual

Set the SASL mechanism which has been selected for the SASL authentication process.

This may be called several times if the multiple mechanisms are tried by the service which use this authentication.

Parameters
mechSASL mechanism

Implemented in defaultSASLAuthenticator.

virtual void setSASLSession ( shared_ptr< SASLSession sess)
pure virtual

Set the SASL session which is using this authenticator.

Parameters
sessSASL session

Implemented in defaultSASLAuthenticator.


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