verify() public method

Checks a raw password against an encoded password.
public verify ( string $hash, string $raw, string $salt = null ) : boolean
$hash string A hashed password
$raw string A raw password
$salt string
return boolean
 /**
  * {@inheritdoc}
  */
 public function validateCredentials(UserInterface $user, array $credentials)
 {
     return $this->encoder->verify($user->getPassword(), $credentials['password']);
 }