|
VMime
|
#include <XOAuth2SASLAuthenticator.hpp>


Public Types | |
| enum | Mode { MODE_SUGGEST , MODE_EXCLUSIVE } |
Public Member Functions | |
| XOAuth2SASLAuthenticator (const Mode mode) | |
| ~XOAuth2SASLAuthenticator () | |
| const std::vector< shared_ptr< SASLMechanism > > | getAcceptableMechanisms (const std::vector< shared_ptr< SASLMechanism > > &available, shared_ptr< SASLMechanism > suggested) const |
Public Member Functions inherited from defaultSASLAuthenticator | |
| defaultSASLAuthenticator () | |
| ~defaultSASLAuthenticator () | |
| const string | getUsername () const |
| const string | getPassword () const |
| const string | getHostname () const |
| const string | getAnonymousToken () const |
| const string | getServiceName () const |
| const string | getAccessToken () const |
| void | setService (shared_ptr< net::service > serv) |
| weak_ptr< net::service > | getService () const |
| void | setSASLSession (shared_ptr< SASLSession > sess) |
| shared_ptr< SASLSession > | getSASLSession () const |
| void | setSASLMechanism (shared_ptr< SASLMechanism > mech) |
| shared_ptr< SASLMechanism > | getSASLMechanism () const |
Additional Inherited Members | |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
An authenticator that is capable of providing information for XOAuth2 authentication mechanisms (username and access token).
This authenticator force using the XOAUTH2 mechanism.
| XOAuth2SASLAuthenticator | ( | const Mode | mode | ) |
|
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.
| available | available mechanisms |
| suggested | suggested mechanism (or NULL if the system could not suggest a mechanism) |
Reimplemented from defaultSASLAuthenticator.
References vmime::dynamicCast(), defaultSASLAuthenticator::getAcceptableMechanisms(), and XOAuth2SASLAuthenticator::MODE_EXCLUSIVE.