Spec-Zone.ru › Symfony 2.7

SimpleAuthenticationProvider

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

Методы

__construct(SimpleAuthenticatorInterface $simpleAuthenticator, UserProviderInterface $userProvider, $providerKey)
TokenInterface authenticate(TokenInterface $token)

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

bool supports(TokenInterface $token)

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

Подробности

__construct(SimpleAuthenticatorInterface $simpleAuthenticator, UserProviderInterface $userProvider, $providerKey)

Параметры

SimpleAuthenticatorInterface $simpleAuthenticator
UserProviderInterface $userProvider
$providerKey

TokenInterface authenticate(TokenInterface $token)

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

Параметры

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

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

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

Исключения

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

bool supports(TokenInterface $token)

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

Параметры

TokenInterface $token Экземпляр TokenInterface

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

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

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

Spec-Zone.ru

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