21 #ifndef G_AUTH_SECRETS_H
22 #define G_AUTH_SECRETS_H
47 G_EXCEPTION( OpenError ,
"cannot read secrets file" ) ;
49 Secrets(
const std::string & source_storage_path ,
50 const std::string & debug_name ,
51 const std::string & server_type = std::string() ) ;
72 virtual std::string
source()
const ;
78 virtual bool valid()
const ;
83 virtual std::string
id(
const std::string & mechanism )
const ;
89 virtual std::string
secret(
const std::string & mechanism )
const ;
95 virtual std::string
secret(
const std::string & mechanism ,
const std::string &
id )
const ;
102 virtual bool contains(
const std::string & mechanism )
const ;
112 void operator=(
const Secrets & ) ;
115 std::string m_source ;
virtual std::string secret(const std::string &mechanism) const
Final override from GAuth::SaslClient::Secrets.
virtual std::string id(const std::string &mechanism) const
Final override from GAuth::SaslClient::Secrets.
Secrets()
Default constructor for an in-valid(), empty-path object.
virtual bool valid() const
Final override from GAuth::Valid virtual base.
A implementation class used by GAuth::Secrets.
A simple interface to a store of secrets as used in authentication.
An interface used by GAuth::SaslClient to obtain authentication secrets.
virtual ~Secrets()
Destructor.
virtual std::string source() const
Final override from GAuth::SaslServer::Secrets.
#define G_EXCEPTION(class_name, description)
define as a function rather than a type if optimising for size
An interface used by GAuth::SaslServer to obtain authentication secrets.
SASL authentication classes.
virtual bool contains(const std::string &mechanism) const
Final override from GAuth::SaslServer::Secrets.