|
VMime
|


Public Member Functions | |
| ~SASLContext () | |
| shared_ptr< SASLSession > | createSession (const string &serviceName, shared_ptr< authenticator > auth, shared_ptr< SASLMechanism > mech) |
| shared_ptr< SASLMechanism > | createMechanism (const string &name) |
| shared_ptr< SASLMechanism > | suggestMechanism (const std::vector< shared_ptr< SASLMechanism > > &mechs) |
| void | decodeB64 (const string &input, byte_t **output, size_t *outputLen) |
| const string | encodeB64 (const byte_t *input, const size_t inputLen) |
Static Public Member Functions | |
| static shared_ptr< SASLContext > | create () |
Additional Inherited Members | |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
An SASL client context.
| ~SASLContext | ( | ) |
|
static |
Construct and initialize a new SASL context.
References SASLContext::createSession().
Referenced by POP3Connection::disconnect(), and SMTPConnection::hasExtension().
| shared_ptr< SASLMechanism > createMechanism | ( | const string & | name | ) |
Create an instance of an SASL mechanism.
| name | mechanism name |
| exceptions::no_such_mechanism | if no mechanism is registered for the specified name |
References SASLMechanismFactory::create(), SASLMechanismFactory::getInstance(), and SASLContext::suggestMechanism().
| shared_ptr< SASLSession > createSession | ( | const string & | serviceName, |
| shared_ptr< authenticator > | auth, | ||
| shared_ptr< SASLMechanism > | mech | ||
| ) |
Create and initialize a new SASL session.
| serviceName | name of the service which will use the session |
| auth | authenticator object to use during the session |
| mech | SASL mechanism |
References SASLSession::create().
Referenced by SASLContext::create().
Helper function for decoding Base64-encoded challenge.
| input | input buffer |
| output | output buffer |
| outputLen | length of output buffer |
References encoderFactory::getInstance().
Helper function for encoding challenge in Base64.
| input | input buffer |
| inputLen | length of input buffer |
References ERROR, and encoderFactory::getInstance().
| shared_ptr< SASLMechanism > suggestMechanism | ( | const std::vector< shared_ptr< SASLMechanism > > & | mechs | ) |
Suggests an SASL mechanism among a set of mechanisms supported by the server.
| mechs | list of mechanisms |
Referenced by SASLContext::createMechanism().