E-MailRelay
|
An interface used by GAuth::SaslServer to obtain authentication secrets. More...
#include <gsaslserversecrets.h>
Public Member Functions | |
virtual Secret | serverSecret (const std::string &type, const std::string &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 (const std::string &mechanism) const =0 |
Returns true if any user has a secret encoded for the given mechanism. More... | |
![]() | |
virtual bool | valid () const =0 |
Returns true if a valid source of information. More... | |
virtual | ~Valid ()=default |
Destructor. | |
An interface used by GAuth::SaslServer to obtain authentication secrets.
Definition at line 39 of file gsaslserversecrets.h.
|
pure virtual |
Returns true if any user has a secret encoded for the given mechanism.
Implemented in GAuth::Secrets.
|
pure virtual |
Returns the server secret for the given client id.
The type is "plain" or the CRAM hash algorithm. Returns an invalid secret if not found.
Implemented in GAuth::Secrets.
|
pure virtual |
Returns a non-empty trustee name if the server trusts the given address range (eg.
"192.168.0.0/24"), together with context information for logging purposes.