/**
* Sets isAuthenticated to TRUE for all tokens.
*
* @param TokenInterface $authenticationToken The token to be authenticated
* @return void
*/
public function authenticate(TokenInterface $authenticationToken)
{
$authenticationToken->setAuthenticationStatus($this->authenticationStatus);
if ($this->authenticationStatus === TokenInterface::AUTHENTICATION_SUCCESSFUL) {
$authenticationToken->setAccount($this->account);
} else {
$authenticationToken->setAccount(null);
}
}