21 #ifndef GAUTH_SASL_SERVER_SECRETS_H
22 #define GAUTH_SASL_SERVER_SECRETS_H
32 class SaslServerSecrets ;
42 virtual Secret serverSecret(
const std::string & encoding_type ,
const std::string &
id )
const = 0 ;
46 virtual std::pair<std::string,std::string>
serverTrust(
const std::string & address_range )
const = 0 ;
51 virtual std::string
source()
const = 0 ;
54 virtual bool contains(
const std::string & mechanism )
const = 0 ;
virtual std::pair< std::string, std::string > serverTrust(const std::string &address_range) const =0
Returns a non-empty trustee name if the server trusts the given address range (eg.
virtual bool contains(const std::string &mechanism) const =0
Returns true if any user has a secret encoded for the given mechanism.
virtual Secret serverSecret(const std::string &encoding_type, const std::string &id) const =0
Returns the server secret for the given client id.
An interface used by GAuth::SaslServer to obtain authentication secrets.
virtual std::string source() const =0
Returns the source identifier (eg. file name).
SASL authentication classes.
Encapsulates a shared secret from the secrets file plus the associated userid.
A trivial mix-in interface containing a valid() method.