E-MailRelay
|
Provides factory functions for client and server secrets objects. More...
#include <gsecrets.h>
Static Public Member Functions | |
static void | check (const std::string &client, const std::string &server, const std::string &pop) |
Checks the given secret sources. More... | |
static std::unique_ptr< SaslServerSecrets > | newServerSecrets (const std::string &spec, const std::string &log_name) |
Factory function for server secrets. More... | |
static std::unique_ptr< SaslClientSecrets > | newClientSecrets (const std::string &spec, const std::string &log_name) |
Factory function for client secrets. More... | |
Provides factory functions for client and server secrets objects.
The implementation is based on GAuth::SecretsFile.
Definition at line 46 of file gsecrets.h.
|
static |
Checks the given secret sources.
Logs warnings and throws an exception if there are any fatal errors.
Definition at line 64 of file gsecrets.cpp.
|
static |
Factory function for client secrets.
The spec is empty or a secrets file path or "plain:<base64-user-id>:<base64-pwd>". The 'log-name' is used in log and error messages. Returns an in-valid() object if the spec is empty. Throws on error.
Definition at line 78 of file gsecrets.cpp.
|
static |
Factory function for server secrets.
The spec is empty or a secrets file path or "/pam" or "pam:". The 'log-name' is used in log and error messages. Returns an in-valid() object if the spec is empty. Throws on error.
Definition at line 72 of file gsecrets.cpp.