Spec-Zone.ru › Symfony 4.1

SimpleAuthenticationProvider

класс SimpleAuthenticationProvider реализует AuthenticationProviderInterface

Методы

__construct(SimpleAuthenticatorInterface $simpleAuthenticator, UserProviderInterface $userProvider, string $providerKey, UserCheckerInterface $userChecker = null)
TokenInterface authenticate(TokenInterface $token)

Попытка аутентификации объекта TokenInterface.

bool supports(TokenInterface $token)

Проверка, поддерживает ли данный провайдер данный токен.

Подробности

__construct(SimpleAuthenticatorInterface $simpleAuthenticator, UserProviderInterface $userProvider, string $providerKey, UserCheckerInterface $userChecker = null)

Параметры

SimpleAuthenticatorInterface $simpleAuthenticator
UserProviderInterface $userProvider
string $providerKey
UserCheckerInterface $userChecker

TokenInterface authenticate(TokenInterface $token)

Попытка аутентификации объекта TokenInterface.

Параметры

TokenInterface $token Экземпляр TokenInterface для аутентификации

Возвращаемое значение

TokenInterface Аутентифицированный экземпляр TokenInterface, никогда не null

Исключения

AuthenticationException если аутентификация не удалась

bool supports(TokenInterface $token)

Проверка, поддерживает ли данный провайдер данный токен.

Параметры

TokenInterface $token

Возвращаемое значение

bool true, если реализация поддерживает токен, false в противном случае

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Core/Authentication/Provider/SimpleAuthenticationProvider.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API