|
static void | setPolicy (lsst::pex::policy::Policy::Ptr policy) |
| Set the authenticator Policy. More...
|
|
static void | resetPolicy () |
| Set the authenticator Policy back to null. More...
|
|
static bool | available (std::string const &host, std::string const &port) |
| Determine whether an authenticator string is available for database access. More...
|
|
static std::string | authString (std::string const &host, std::string const &port) |
| Get the authenticator string for a database. More...
|
|
static std::string | username (std::string const &host, std::string const &port) |
| Get the username to use to authenticate to a database. More...
|
|
static std::string | password (std::string const &host, std::string const &port) |
| Get the password to use to authenticate to a database. More...
|
|
Class for database authentication.
Provides access to username and password to be used to authenticate to a database. Actual username and password come from a well-known environment variable or a well-known file or a file specified by Policy. The format for the authenticator string in any location is "username:password".
Definition at line 58 of file DbAuth.h.