E-MailRelay
|
A thin adapter between GAuth::SecretsFile and GAuth::SaslServerSecrets returned by GAuth::Secrets::newServerSecrets(). More...
#include <gsecrets.h>
Public Member Functions | |
SecretsFileServer (const std::string &path, const std::string &log_name) | |
Constructor. See GAuth::Secrets::newServerSecrets(). More... | |
~SecretsFileServer () override | |
Destructor. | |
SecretsFileServer (const SecretsFileServer &)=delete | |
SecretsFileServer (SecretsFileServer &&)=delete | |
SecretsFileServer & | operator= (const SecretsFileServer &)=delete |
SecretsFileServer & | operator= (SecretsFileServer &&)=delete |
![]() | |
virtual | ~SaslServerSecrets ()=default |
Destructor. | |
virtual bool | valid () const =0 |
Returns true if the secrets are valid. | |
virtual Secret | serverSecret (std::string_view type, std::string_view id) const =0 |
Returns the server secret for the given client id. More... | |
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. More... | |
virtual std::string | source () const =0 |
Returns the source identifier (eg. file name). | |
virtual bool | contains (std::string_view type, std::string_view id) const =0 |
Returns true if there is a secret of the given type either for one user in particular or for any user if the id is empty. | |
A thin adapter between GAuth::SecretsFile and GAuth::SaslServerSecrets returned by GAuth::Secrets::newServerSecrets().
Definition at line 108 of file gsecrets.h.
GAuth::SecretsFileServer::SecretsFileServer | ( | const std::string & | path, |
const std::string & | log_name | ||
) |
Constructor. See GAuth::Secrets::newServerSecrets().
Definition at line 135 of file gsecrets.cpp.