PHP 클래스 Neos\Flow\Security\Authentication\Token\AbstractToken

상속: implements Neos\Flow\Security\Authentication\TokenInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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