VMime
|
Public Member Functions | |
~SASLContext () | |
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) |
Additional Inherited Members | |
![]() | |
object () | |
object (const object &) | |
object & | operator= (const object &) |
virtual | ~object () |
An SASL client context.
~SASLContext | ( | ) |
SASLContext | ( | ) |
Construct and initialize a new SASL context.
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(), and SASLMechanismFactory::getInstance().
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 |
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 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 |