Neos\Flow\Security\Authentication\TokenInterface::getAuthenticationProviderName PHP 메소드

getAuthenticationProviderName() 공개 메소드

Returns the name of the authentication provider responsible for this token
public getAuthenticationProviderName ( ) : string
리턴 string The authentication provider name
    public function getAuthenticationProviderName();

Usage Example

 /**
  * 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;
     }
 }