Neos\Flow\Security\Authentication\Provider\AbstractProvider::canAuthenticate PHP Метод

canAuthenticate() публичный Метод

Returns TRUE if the given token can be authenticated by this provider
public canAuthenticate ( Neos\Flow\Security\Authentication\TokenInterface $authenticationToken ) : boolean
$authenticationToken Neos\Flow\Security\Authentication\TokenInterface The token that should be authenticated
Результат boolean TRUE if the given token class can be authenticated by this provider
    public function canAuthenticate(TokenInterface $authenticationToken)
    {
        if ($authenticationToken->getAuthenticationProviderName() === $this->name) {
            return true;
        } else {
            return false;
        }
    }