24#ifndef AUTHENTICATION_HPP
25#define AUTHENTICATION_HPP
51 virtual bool valid_credentials(
const std::string & username,
const std::string & credential)
const = 0;
67 authentication_cli(
const std::string & username,
const std::string & password) { user = username; pass = password; };
74 virtual bool valid_credentials(
const std::string & username,
const std::string & credential)
const override
78 return (strcmp(username.c_str(),user.c_str()) == 0) && strcmp(credential.c_str(), pass.c_str()) == 0;
authentication_cli implements an authentication method based on a fixed login and password
Definition: authentication.hpp:65
place holder class for Unix PAM authentication (not implemented for now)
Definition: authentication.hpp:57
pure virtual class defining the interface for current and future authentication methods
Definition: authentication.hpp:42