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().
SaslClient(const SaslClientSecrets &secrets, const std::string &config)
Constructor. The secrets reference is kept.
Response response(std::string_view mechanism, std::string_view challenge, std::string_view selector) const
Returns a response to the given challenge.
bool validSelector(std::string_view selector) const
Returns true if the selector is valid.
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.
Response initialResponse(std::string_view selector, std::size_t limit=0U) const
Returns an optional initial response.
bool mustAuthenticate(std::string_view selector) const
Returns true if authentication is required.
SASL authentication classes.
std::vector< std::string > StringArray
A std::vector of std::strings.
Result structure returned from GAuth::SaslClient::response.