21#ifndef G_SASL_CLIENT_H
22#define G_SASL_CLIENT_H
45 bool sensitive{
true} ;
80 std::string
next(
const std::string & ) ;
90 std::string
id()
const ;
94 std::string
info()
const ;
101 void operator=(
const SaslClient & ) = delete ;
105 std::unique_ptr<SaslClientImp> m_imp ;
An interface used by GAuth::SaslClient to obtain a client id and its authentication secret.
A class that implements the client-side SASL challenge/response concept.
Response response(const std::string &mechanism, const std::string &challenge) const
Returns a response to the given challenge.
std::string id() const
Returns the authentication id, valid after the last response().
std::string initialResponse(std::size_t limit=0U) const
Returns an optional initial response.
SaslClient(const SaslClientSecrets &secrets, const std::string &config)
Constructor. The secrets reference is kept.
bool next()
Moves to the next preferred mechanism.
std::string info() const
Returns logging and diagnostic information, valid after the last response().
std::string mechanism() const
Returns the name of the current mechanism once next() has returned true.
bool active() const
Returns true if the constructor's secrets object is valid.
SASL authentication classes.
std::vector< std::string > StringArray
A std::vector of std::strings.
Result structure returned from GAuth::SaslClient::response.