21#ifndef G_SASL_SERVER_BASIC_H
22#define G_SASL_SERVER_BASIC_H
37 class SaslServerBasicImp ;
38 class SaslServerBasic ;
48 G_EXCEPTION( NoMechanisms ,
"no server authentication mechanisms available" ) ;
61 bool requiresEncryption()
const override ;
62 bool active()
const override ;
63 std::string mechanisms(
char sep )
const override ;
64 bool init(
const std::string & mechanism )
override ;
65 std::string mechanism()
const override ;
66 bool mustChallenge()
const override ;
67 std::string initialChallenge()
const override ;
68 std::string apply(
const std::string & response ,
bool & done )
override ;
69 bool authenticated()
const override ;
70 std::string id()
const override ;
74 std::unique_ptr<SaslServerBasicImp> m_imp ;
An implementation of the SaslServer interface that does not use PAM.
SaslServerBasic(const SaslServerSecrets &, const std::string &config, bool allow_apop)
Constructor.
An interface used by GAuth::SaslServer to obtain authentication secrets.
An interface for implementing the server-side SASL challenge/response concept.
The GNet::Address class encapsulates a TCP/UDP transport address.
SASL authentication classes.