MySQL 9.1.0
Source Code Documentation
|
Interfaces to enforce a password policy. More...
#include <validate_password.h>
Public Attributes | |
mysql_service_status_t(* | validate )(void *thd, my_h_string password) |
Checks if a password is valid by the password policy. More... | |
mysql_service_status_t(* | get_strength )(void *thd, my_h_string password, unsigned int *strength) |
Calculates the strength of a password in the scale of 0 to 100. More... | |
Interfaces to enforce a password policy.
The policy is enfoced through two methods 1) validate() that answers the question of whether this password is good enough or not.
2) get_strength() that can be used by password changing UIs to display a password strength meter in the range of [0-100] as the user enters a password.
mysql_service_status_t(* s_mysql_validate_password::get_strength) (void *thd, my_h_string password, unsigned int *strength) |
Calculates the strength of a password in the scale of 0 to 100.
thd | MYSQL THD object | |
password | Given Password | |
[out] | strength | pointer to handle the strength of the given password. in the range of [0-100], where 0 is week password and 100 is strong password |
mysql_service_status_t(* s_mysql_validate_password::validate) (void *thd, my_h_string password) |
Checks if a password is valid by the password policy.
thd | MYSQL THD object |
password | Given Password |