Interface

Symfony\Component\Security\Core\Authentication\Provider\AuthenticationProviderInterface

interface AuthenticationProviderInterface implements AuthenticationManagerInterface

AuthenticationProviderInterface is the interface for for all authentication providers.

Concrete implementations processes specific Token instances.

Methods

TokenInterface authenticate(TokenInterface $token)

Attempts to authenticates a TokenInterface object.

from AuthenticationManagerInterface
Boolean supports(TokenInterface $token)

Checks whether this provider supports the given token.

Details

public TokenInterface authenticate(TokenInterface $token)

Attempts to authenticates a TokenInterface object.

Parameters

TokenInterface $token The TokenInterface instance to authenticate

Return Value

TokenInterface An authenticated TokenInterface instance, never null

Exceptions

AuthenticationException if the authentication fails

at line 34
public Boolean supports(TokenInterface $token)

Checks whether this provider supports the given token.

Parameters

TokenInterface $token A TokenInterface instance

Return Value

Boolean true if the implementation supports the Token, false otherwise