LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
|
Class for database authentication. More...
#include <DbAuth.h>
Static Public Member Functions | |
static void | setPolicy (lsst::pex::policy::Policy::Ptr policy) |
static bool | available (std::string const &host, std::string const &port) |
static std::string | authString (std::string const &host, std::string const &port) |
static std::string | username (std::string const &host, std::string const &port) |
static std::string | password (std::string const &host, std::string const &port) |
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".
|
static |
Get the authenticator string for a database.
[in] | host | Name of the host to connect to. |
[in] | port | Port number to connect to (as string). |
|
static |
Determine whether an authenticator string is available for database access.
[in] | host | Name of the host to connect to. |
[in] | port | Port number to connect to (as string). |
|
static |
Get the password to use to authenticate to a database.
[in] | host | Name of the host to connect to. |
[in] | port | Port number to connect to (as string). |
|
static |
Set the authenticator Policy.
[in] | policy | Pointer to a Policy |
Definition at line 119 of file DbAuth.cc.
|
static |
Get the username to use to authenticate to a database.
[in] | host | Name of the host to connect to. |
[in] | port | Port number to connect to (as string). |