21 #ifndef G_SASL_CLIENT_H
22 #define G_SASL_CLIENT_H
54 public:
virtual std::string
id(
const std::string & mechanism )
const = 0 ;
55 public:
virtual std::string
secret(
const std::string &
id )
const = 0 ;
57 private:
void operator=(
const Secrets & ) ;
70 std::string
response(
const std::string & mechanism ,
const std::string & challenge ,
71 bool & done ,
bool & error ,
bool & sensitive )
const ;
std::string preferred(const G::Strings &mechanisms) const
Returns the name of the preferred mechanism taken from the given set.
std::string response(const std::string &mechanism, const std::string &challenge, bool &done, bool &error, bool &sensitive) const
Returns a response to the given challenge.
virtual std::string secret(const std::string &id) const =0
std::list< std::string > Strings
A std::list of std::strings.
SaslClient(const Secrets &secrets, const std::string &server_name)
Constructor. The secrets reference is kept.
bool active() const
Returns true if the constructor's secrets object is valid.
A private pimple-pattern implementation class used by GAuth::SaslClient.
An interface used by GAuth::SaslClient to obtain authentication secrets.
A class for implementing the client-side SASL challenge/response concept.
virtual std::string id(const std::string &mechanism) const =0
SASL authentication classes.
A trivial mix-in interface containing a valid() method.