21 #ifndef G_SASL_SERVER_H
22 #define G_SASL_SERVER_H
78 virtual bool active()
const = 0 ;
82 virtual std::string
mechanisms(
char sep =
' ' )
const = 0 ;
96 virtual std::string
mechanism()
const = 0 ;
118 virtual std::string
apply(
const std::string & response ,
bool & done ) = 0 ;
126 virtual std::string
id()
const = 0 ;
virtual std::string mechanisms(char sep= ' ') const =0
Returns a list of supported, standard mechanisms that can be advertised to the client.
virtual std::string id() const =0
Returns the authenticated or trusted identity.
virtual bool requiresEncryption() const =0
Returns true if the implementation requires that the challenge/response dialog should only take place...
virtual bool trusted(const GNet::Address &) const =0
Returns true if a trusted client that does not need to authenticate.
virtual bool authenticated() const =0
Returns true if authenticated sucessfully.
virtual bool active() const =0
Returns true if the constructor's "secrets" object was valid.
virtual std::string apply(const std::string &response, bool &done)=0
Applies the client response and returns the next challenge.
The GNet::Address class encapsulates a TCP/UDP transport address.
virtual std::string initialChallenge() const =0
Returns the initial server challenge.
virtual bool mustChallenge() const =0
Returns true if authentication using the current mechanism must always start with a non-empty server ...
virtual bool init(const std::string &mechanism)=0
Initialiser.
An interface for implementing the server-side SASL challenge/response concept.
virtual std::string mechanism() const =0
Returns the mechanism, as passed to the last init() call to return true.
SASL authentication classes.
virtual ~SaslServer()
Destructor.