25 #ifndef LSST_MWI_PERSISTENCE_DBAUTH_H 26 #define LSST_MWI_PERSISTENCE_DBAUTH_H 52 #include "lsst/pex/policy.h" 56 namespace persistence {
60 static void setPolicy(lsst::pex::policy::Policy::Ptr policy);
62 static bool available(std::string
const& host, std::string
const& port);
63 static std::string
authString(std::string
const& host,
64 std::string
const& port);
65 static std::string
username(std::string
const& host,
66 std::string
const& port);
67 static std::string
password(std::string
const& host,
68 std::string
const& port);
static bool available(std::string const &host, std::string const &port)
Determine whether an authenticator string is available for database access.
static void setPolicy(lsst::pex::policy::Policy::Ptr policy)
Set the authenticator Policy.
Class for database authentication.
static void resetPolicy()
Set the authenticator Policy back to null.
static std::string authString(std::string const &host, std::string const &port)
Get the authenticator string for a database.
static std::string username(std::string const &host, std::string const &port)
Get the username to use to authenticate to a database.
static std::string password(std::string const &host, std::string const &port)
Get the password to use to authenticate to a database.