21#ifndef G_SASL_CLIENT_H
22#define G_SASL_CLIENT_H
46 bool sensitive{
true} ;
84 std::string
next(
const std::string & ) ;
93 std::string
id()
const ;
97 std::string
info()
const ;
108 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.
std::string id() const
Returns the authentication id, valid after the last response().
Response response(G::string_view mechanism, G::string_view challenge, G::string_view selector) const
Returns a response to the given challenge.
Response initialResponse(G::string_view selector, std::size_t limit=0U) const
Returns an optional initial response.
bool mustAuthenticate(G::string_view selector) const
Returns true if authentication is required.
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 validSelector(G::string_view selector) const
Returns true if the selector is valid.
A class like c++17's std::string_view.
SASL authentication classes.
std::vector< std::string > StringArray
A std::vector of std::strings.
Result structure returned from GAuth::SaslClient::response.