/** * Returns TRUE if the given token can be authenticated by this provider * * @param TokenInterface $authenticationToken The token that should be authenticated * @return 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; } }
/** * Returns TRUE if the given token can be authenticated by this provider * * @param \TYPO3\Flow\Security\Authentication\TokenInterface $authenticationToken The token that should be authenticated * @return boolean TRUE if the given token class can be authenticated by this provider */ public function canAuthenticate(\TYPO3\Flow\Security\Authentication\TokenInterface $authenticationToken) { if ($authenticationToken->getAuthenticationProviderName() === $this->name) { return TRUE; } else { return FALSE; } }