Method | Description | |
---|---|---|
__toString ( ) : string | Returns a string representation of the token for logging purposes. | |
getAccount ( ) : |
Returns the account if one is authenticated, NULL otherwise. | |
getAuthenticationEntryPoint ( ) : Neos\Flow\Security\Authentication\EntryPointInterface | Returns the configured authentication entry point, NULL if none is available | |
getAuthenticationProviderName ( ) : string | Returns the name of the authentication provider responsible for this token | |
getAuthenticationStatus ( ) : integer | Returns the current authentication status | |
getCredentials ( ) : mixed | Returns the credentials of this token. The type depends on the provider of the token. | |
getRequestPatterns ( ) : array | Returns an array of set \Neos\Flow\Security\RequestPatternInterface, NULL if none was set | |
hasRequestPatterns ( ) : boolean | Returns TRUE if \Neos\Flow\Security\RequestPattern were set | |
isAuthenticated ( ) : boolean | Returns TRUE if this token is currently authenticated | |
setAccount ( |
Set the (authenticated) account | |
setAuthenticationEntryPoint ( Neos\Flow\Security\Authentication\EntryPointInterface $entryPoint ) : void | Sets the authentication entry point | |
setAuthenticationProviderName ( string $authenticationProviderName ) : void | Sets the name of the authentication provider responsible for this token | |
setAuthenticationStatus ( integer $authenticationStatus ) : void | Sets the authentication status. Usually called by the responsible AuthenticationManagerInterface | |
setRequestPatterns ( array $requestPatterns ) : void | Sets request patterns | |
updateCredentials ( |
Updates the authentication credentials, the authentication manager needs to authenticate this token. |
public __toString ( ) : string | ||
return | string | A string representation of the token |
public getAccount ( ) : |
||
return | An account object |
public getAuthenticationEntryPoint ( ) : Neos\Flow\Security\Authentication\EntryPointInterface | ||
return | Neos\Flow\Security\Authentication\EntryPointInterface | The configured authentication entry point, NULL if none is available |
public getAuthenticationProviderName ( ) : string | ||
return | string | The authentication provider name |
public getAuthenticationStatus ( ) : integer | ||
return | integer | One of NO_CREDENTIALS_GIVEN, WRONG_CREDENTIALS, AUTHENTICATION_SUCCESSFUL, REAUTHENTICATION_NEEDED |
public getCredentials ( ) : mixed | ||
return | mixed | $credentials The needed credentials to authenticate this token |
public getRequestPatterns ( ) : array | ||
return | array | Array of set request patterns |
public hasRequestPatterns ( ) : boolean | ||
return | boolean | True if a \Neos\Flow\Security\RequestPatternInterface was set |
public isAuthenticated ( ) : boolean | ||
return | boolean | TRUE if this this token is currently authenticated |
public setAccount ( |
||
$account | An account object | |
return | void |
public setAuthenticationEntryPoint ( Neos\Flow\Security\Authentication\EntryPointInterface $entryPoint ) : void | ||
$entryPoint | Neos\Flow\Security\Authentication\EntryPointInterface | The authentication entry point |
return | void |
public setAuthenticationProviderName ( string $authenticationProviderName ) : void | ||
$authenticationProviderName | string | The authentication provider name |
return | void |
public setAuthenticationStatus ( integer $authenticationStatus ) : void | ||
$authenticationStatus | integer | One of NO_CREDENTIALS_GIVEN, WRONG_CREDENTIALS, AUTHENTICATION_SUCCESSFUL |
return | void |
public setRequestPatterns ( array $requestPatterns ) : void | ||
$requestPatterns | array | Array of \Neos\Flow\Security\RequestPatternInterface to be set |
return | void |
public updateCredentials ( |
||
$actionRequest | The current request instance | |
return | boolean | TRUE if this token needs to be (re-)authenticated |