MySQL 8.0.40
Source Code Documentation
validate_password_imp Class Reference

An implementation of the password_validation_service to validate password and to get its strength. More...

#include <validate_password_imp.h>

Static Public Member Functions

static mysql_service_status_t validate (void *thd, my_h_string password) noexcept
 Validates the strength of given password. More...
 
static mysql_service_status_t get_strength (void *thd, my_h_string password, unsigned int *strength) noexcept
 Gets the password strength between (0-100) More...
 

Detailed Description

An implementation of the password_validation_service to validate password and to get its strength.

Member Function Documentation

◆ get_strength()

mysql_service_status_t validate_password_imp::get_strength ( void *  thd,
my_h_string  password,
unsigned int *  strength 
)
staticnoexcept

Gets the password strength between (0-100)

See also
validate_password::get_strength()
Parameters
thdMYSQL THD object
passwordGiven Password
[out]strengthpointer to handle the strength of the given password. in the range of [0-100], where 0 is week password and 100 is strong password
Returns
Status of performed operation
false success
true failure

◆ validate()

mysql_service_status_t validate_password_imp::validate ( void *  thd,
my_h_string  password 
)
staticnoexcept

Validates the strength of given password.

See also
validate_password::validate()
Parameters
thdMYSQL THD object
passwordGiven Password
Returns
Status of performed operation
false success valid password
true failure invalid password

The documentation for this class was generated from the following files: