Core\Authentication\Provider\UserAuthenticationProvider (Component\Security)
Symfony\Component\Security\Core\Authentication\Provider\UserAuthenticationProvider
abstract class UserAuthenticationProvider implements AuthenticationProviderInterface
UserProviderInterface retrieves users for UsernamePasswordToken tokens.
Methods
__construct(UserCheckerInterface $userChecker, string $providerKey, bool $hideUserNotFoundExceptions = true) Constructor. | ||
TokenInterface | authenticate(TokenInterface $token) Attempts to authenticate a TokenInterface object. | |
bool | supports(TokenInterface $token) Checks whether this provider supports the given token. |
Details
public __construct(UserCheckerInterface $userChecker, string $providerKey, bool $hideUserNotFoundExceptions = true)
Constructor.
public TokenInterface authenticate(TokenInterface $token)
Attempts to authenticate a TokenInterface object.
public bool supports(TokenInterface $token)
Checks whether this provider supports the given token.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Security/Core/Authentication/Provider/UserAuthenticationProvider.html