36 #ifndef _AUTHENTICATOR_HPP_INCLUDED
37 #define _AUTHENTICATOR_HPP_INCLUDED
74 static const char* ar[] = {
"INITIALIZED",
"MESSAGE_AVAILABLE",
"AWAITING_MESSAGE",
"AUTHENTICATED",
"INVALID_CREDENTIALS",
"MECH_UNAVAILABLE",
"SYSTEM_FAILURE"};
90 virtual const std::vector<std::string>&
mechs()
const = 0;
99 virtual bool setMech(
const std::string& mech ) = 0;
103 virtual void messageIn(
const std::string& message ) = 0;
123 #endif // _AUTHENTICATOR_HPP_INCLUDED
Basic user login information.
some other error occurred
Definition: authenticator.hpp:69
Classes for network endpoints.
an output message is available
Definition: authenticator.hpp:62
static const char * statusName(Status i)
Definition: authenticator.hpp:72
virtual Status status() const =0
The current status of the authenticator.
virtual bool setMech(const std::string &mech)=0
virtual void messageIn(const std::string &message)=0
a user has been authenticated
Definition: authenticator.hpp:64
Data structure containing all login data of a user.
Definition: user.hpp:47
virtual const std::vector< std::string > & mechs() const =0
The list of available mechs.
virtual ~Authenticator()
The virtual destructor.
Definition: authenticator.hpp:79
Status
Definition: authenticator.hpp:59
waiting for an input message
Definition: authenticator.hpp:63
virtual std::string messageOut()=0
Definition: authenticator.hpp:65
Definition: authenticator.hpp:60
Authenticator interface This the only interface to be used by the system. All other interfaces are in...
Definition: authenticator.hpp:56
Definition: authenticator.hpp:67