PHP Interface Neos\Flow\Security\Authentication\AuthenticationProviderInterface

Has to add a TokenInterface to the security context, which contains.
显示文件 Open project: neos/flow-development-collection

Public Methods

Method Description
authenticate ( Neos\Flow\Security\Authentication\TokenInterface $authenticationToken ) : void Tries to authenticate the given token. Sets isAuthenticated to TRUE if authentication succeeded.
canAuthenticate ( Neos\Flow\Security\Authentication\TokenInterface $token ) : boolean Returns TRUE if the given token can be authenticated by this provider
getTokenClassNames ( ) : array Returns the classnames of the tokens this provider is responsible for.

Method Details

authenticate() public method

Tries to authenticate the given token. Sets isAuthenticated to TRUE if authentication succeeded.
public authenticate ( Neos\Flow\Security\Authentication\TokenInterface $authenticationToken ) : void
$authenticationToken Neos\Flow\Security\Authentication\TokenInterface The token to be authenticated
return void

canAuthenticate() public method

Returns TRUE if the given token can be authenticated by this provider
public canAuthenticate ( Neos\Flow\Security\Authentication\TokenInterface $token ) : boolean
$token Neos\Flow\Security\Authentication\TokenInterface The token that should be authenticated
return boolean TRUE if the given token class can be authenticated by this provider

getTokenClassNames() public method

Returns the classnames of the tokens this provider is responsible for.
public getTokenClassNames ( ) : array
return array The classname of the token this provider is responsible for