Wt
4.11.1
|
Abstract password authentication service. More...
#include <Wt/Auth/AbstractPasswordService.h>
Classes | |
class | AbstractStrengthValidator |
Validator for password strength. More... | |
class | StrengthValidatorResult |
Result returned when validating password strength. More... | |
Public Member Functions | |
virtual | ~AbstractPasswordService () |
Destructor. | |
virtual const AuthService & | baseAuth () const =0 |
Returns the basic authentication service. | |
virtual bool | attemptThrottlingEnabled () const =0 |
Returns whether password attempt throttling is enabled. | |
virtual AuthThrottle * | passwordThrottle () const =0 |
Returns the class instance managing the delaying. More... | |
virtual AbstractStrengthValidator * | strengthValidator () const =0 |
Returns a validator which checks that a password is strong enough. | |
virtual int | delayForNextAttempt (const User &user) const =0 |
Returns the delay for this user for a next authentication attempt. More... | |
virtual PasswordResult | verifyPassword (const User &user, const WString &password) const =0 |
Verifies a password for a given user. More... | |
virtual void | updatePassword (const User &user, const WString &password) const =0 |
Sets a new password for the given user. More... | |
Abstract password authentication service.
This abstract class defines the interface for password authentication.
It provides methods to verify a password, to update a password, and to throttle password verification attempts.
|
pure virtual |
Returns the delay for this user for a next authentication attempt.
The implementation of this functionality is managed by AuthThrottle.
Implemented in Wt::Auth::PasswordService.
|
pure virtual |
Returns the class instance managing the delaying.
Implemented in Wt::Auth::PasswordService.
|
pure virtual |
Sets a new password for the given user.
This stores a new password for the user in the database.
Implemented in Wt::Auth::PasswordService.
|
pure virtual |
Verifies a password for a given user.
The supplied password is verified against the user's credentials stored in the database. If password account throttling is enabled, it may also refuse an authentication attempt.
Implemented in Wt::Auth::PasswordService.