57 bool init(
const std::string & mechanism ) ;
72 bool authenticated(
const std::string & rsp1 ,
const std::string & rsp2 ) ;
84 std::string
id()
const ;
99 void operator=(
const Auth & ) ;
A simple interface to a store of secrets as used in authentication.
std::string mechanisms() const
Returns a space-separated list of standard, supported SASL mechanisms (so not including APOP)...
bool mustChallenge() const
Returns true if the init()ialised mechanism requires an initial challenge.
bool init(const std::string &mechanism)
Initialises or reinitialises with the specified mechanism.
std::string challenge()
Returns an initial challenge appropriate to the current mechanism.
std::string id() const
Returns the authenticated user id.
bool sensitive() const
Returns true if the implementation requires authentication to be restricted to encrypted transports...
bool authenticated(const std::string &rsp1, const std::string &rsp2)
Authenticates a one-step (APOP,PLAIN) or two-step (LOGIN) challenge-response sequence.
A private pimple-pattern implementation class used by GPop::Auth.
An authenticator interface for POP3 sessions.
bool valid() const
Returns true if the secrets are valid.
Auth(const Secrets &)
Constructor.