Neos\Flow\Security\Authentication\Token\AbstractToken::setAuthenticationProviderName PHP Method

setAuthenticationProviderName() public method

Sets the name of the authentication provider responsible for this token
public setAuthenticationProviderName ( string $authenticationProviderName ) : void
$authenticationProviderName string The authentication provider name
return void
    public function setAuthenticationProviderName($authenticationProviderName)
    {
        $this->authenticationProviderName = $authenticationProviderName;
    }

Usage Example

コード例 #1
0
 /**
  * @test
  */
 public function authenticationProviderNameCanBeSetAndRetrieved()
 {
     $this->token->setAuthenticationProviderName('My Cool Provider');
     $this->assertEquals('My Cool Provider', $this->token->getAuthenticationProviderName());
 }