public authenticate ( Neos\Flow\Security\Authentication\TokenInterface $authenticationToken ) : void | ||
$authenticationToken | Neos\Flow\Security\Authentication\TokenInterface | The token to be authenticated |
리턴 | void |
public function authenticate(TokenInterface $authenticationToken)
{
$authenticationToken->setAuthenticationStatus($this->authenticationStatus);
if ($this->authenticationStatus === TokenInterface::AUTHENTICATION_SUCCESSFUL) {
$authenticationToken->setAccount($this->account);
} else {
$authenticationToken->setAccount(null);
}
}