AppserverIo\Appserver\ServletEngine\Security\RealmInterface::authenticate PHP Method

authenticate() public method

Tries to authenticate the user with the passed username and password.
public authenticate ( string $username, string $password ) : AppserverIo\Security\PrincipalInterface | null
$username string The name of the user to authenticate
$password string The password used for authentication
return AppserverIo\Security\PrincipalInterface | null The authenticated user principal
    public function authenticate(string $username, string $password);