21#ifndef GAUTH_SASL_SERVER_SECRETS_H
22#define GAUTH_SASL_SERVER_SECRETS_H
32 class SaslServerSecrets ;
47 virtual std::pair<std::string,std::string>
serverTrust(
const std::string & address_range )
const = 0 ;
52 virtual std::string
source()
const = 0 ;
55 virtual bool contains(
const std::string & mechanism )
const = 0 ;
An interface used by GAuth::SaslServer to obtain authentication secrets.
virtual bool contains(const std::string &mechanism) const =0
Returns true if any user has a secret encoded for the given mechanism.
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 std::string source() const =0
Returns the source identifier (eg. file name).
virtual Secret serverSecret(const std::string &type, const std::string &id) const =0
Returns the server secret for the given client id.
Encapsulates a shared secret from the secrets file plus the associated userid.
A trivial mix-in interface containing a valid() method.
SASL authentication classes.