21 #ifndef G_AUTH_SECRETS_H
22 #define G_AUTH_SECRETS_H
43 G_EXCEPTION( OpenError ,
"cannot read secrets file" ) ;
45 Secrets(
const std::string & source_storage_path ,
const std::string & debug_name ,
46 const std::string & server_type = std::string() ) ;
67 virtual std::string
source()
const override ;
70 virtual bool valid()
const override ;
77 const std::string &
id )
const override ;
80 virtual std::pair<std::string,std::string>
serverTrust(
const std::string & address_range )
const override ;
83 virtual bool contains(
const std::string & mechanism )
const override ;
88 void operator=(
const Secrets & ) ;
91 std::string m_source ;
An interface used by GAuth::SaslClient to obtain a client id and its authentication secret...
virtual Secret clientSecret(const std::string &mechanism) const override
Override from GAuth::SaslClientSecrets.
virtual bool valid() const override
Override from GAuth::Valid virtual base.
virtual std::pair< std::string, std::string > serverTrust(const std::string &address_range) const override
Override from GAuth::SaslServerSecrets.
Secrets()
Default constructor for an in-valid(), empty-path object.
An interface used by GAuth::SaslServer to obtain authentication secrets.
A class to read authentication secrets from file, used by GAuth::Secrets.
A simple interface for a store of secrets used in authentication.
virtual Secret serverSecret(const std::string &mechanism, const std::string &id) const override
Override from GAuth::SaslServerSecrets.
virtual ~Secrets()
Destructor.
virtual std::string source() const override
Override from GAuth::SaslServerSecrets.
virtual bool contains(const std::string &mechanism) const override
Override from GAuth::SaslServerSecrets.
SASL authentication classes.
Encapsulates a shared secret from the secrets file plus the associated userid.