PHP Класс Neos\Flow\Security\Authentication\Token\AbstractToken

Наследование: implements Neos\Flow\Security\Authentication\TokenInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$account Neos\Flow\Security\Account
$authenticationProviderName string
$authenticationStatus integer Current authentication status of this token
$credentials array The credentials submitted by the client
$entryPoint Neos\Flow\Security\Authentication\EntryPointInterface The authentication entry point
$requestPatterns array

Открытые методы

Метод Описание
__toString ( ) : string Returns a string representation of the token for logging purposes.
getAccount ( ) : Account 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 ( ) : array Returns the credentials (username and password) of this token.
getRequestPatterns ( ) : array<\Neos\Flow\Security\RequestPatternInterface> Returns an array of set \Neos\Flow\Security\RequestPatternInterface, NULL if none was set
hasRequestPatterns ( ) : boolean Returns TRUE if any request pattern has been defined
isAuthenticated ( ) : boolean Returns TRUE if this token is currently authenticated
setAccount ( Account $account = null ) : void 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 \Neos\Flow\Security\Authentication\AuthenticationManagerInterface
setRequestPatterns ( array $requestPatterns ) : void Sets request patterns

Описание методов

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

Returns a string representation of the token for logging purposes.
public __toString ( ) : string
Результат string The class name

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

Returns the account if one is authenticated, NULL otherwise.
public getAccount ( ) : Account
Результат Neos\Flow\Security\Account An account object

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

Returns the configured authentication entry point, NULL if none is available
public getAuthenticationEntryPoint ( ) : Neos\Flow\Security\Authentication\EntryPointInterface
Результат Neos\Flow\Security\Authentication\EntryPointInterface The configured authentication entry point, NULL if none is available

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

Returns the name of the authentication provider responsible for this token
public getAuthenticationProviderName ( ) : string
Результат string The authentication provider name

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

Returns the current authentication status
public getAuthenticationStatus ( ) : integer
Результат integer One of NO_CREDENTIALS_GIVEN, WRONG_CREDENTIALS, AUTHENTICATION_SUCCESSFUL, AUTHENTICATION_NEEDED

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

Returns the credentials (username and password) of this token.
public getCredentials ( ) : array
Результат array $credentials The needed credentials to authenticate this token

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

Returns an array of set \Neos\Flow\Security\RequestPatternInterface, NULL if none was set
См. также: hasRequestPattern()
public getRequestPatterns ( ) : array<\Neos\Flow\Security\RequestPatternInterface>
Результат array<\Neos\Flow\Security\RequestPatternInterface>

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

Returns TRUE if any request pattern has been defined
public hasRequestPatterns ( ) : boolean
Результат boolean

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

Returns TRUE if this token is currently authenticated
public isAuthenticated ( ) : boolean
Результат boolean TRUE if this this token is currently authenticated

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

Set the (authenticated) account
public setAccount ( Account $account = null ) : void
$account Neos\Flow\Security\Account An account object
Результат void

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

Sets the authentication entry point
public setAuthenticationEntryPoint ( Neos\Flow\Security\Authentication\EntryPointInterface $entryPoint ) : void
$entryPoint Neos\Flow\Security\Authentication\EntryPointInterface The authentication entry point
Результат void

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

Sets the name of the authentication provider responsible for this token
public setAuthenticationProviderName ( string $authenticationProviderName ) : void
$authenticationProviderName string The authentication provider name
Результат void

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

Sets the authentication status. Usually called by the responsible \Neos\Flow\Security\Authentication\AuthenticationManagerInterface
public setAuthenticationStatus ( integer $authenticationStatus ) : void
$authenticationStatus integer One of NO_CREDENTIALS_GIVEN, WRONG_CREDENTIALS, AUTHENTICATION_SUCCESSFUL, AUTHENTICATION_NEEDED
Результат void

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

Sets request patterns
public setRequestPatterns ( array $requestPatterns ) : void
$requestPatterns array Array of RequestPatternInterface to be set
Результат void

Описание свойств

$account защищенное свойство

protected Account,Neos\Flow\Security $account
Результат Neos\Flow\Security\Account

$authenticationProviderName защищенное свойство

protected string $authenticationProviderName
Результат string

$authenticationStatus защищенное свойство

Current authentication status of this token
protected int $authenticationStatus
Результат integer

$credentials защищенное свойство

The credentials submitted by the client
protected array $credentials
Результат array

$entryPoint защищенное свойство

The authentication entry point
protected EntryPointInterface,Neos\Flow\Security\Authentication $entryPoint
Результат Neos\Flow\Security\Authentication\EntryPointInterface

$requestPatterns защищенное свойство

protected array $requestPatterns
Результат array