Spec-Zone.ru › Symfony 2.7

DaoAuthenticationProvider

class DaoAuthenticationProvider extends UserAuthenticationProvider

DaoAuthenticationProvider использует UserProviderInterface для получения пользователя для UsernamePasswordToken.

Методы

__construct(UserProviderInterface $userProvider, UserCheckerInterface $userChecker, string $providerKey, EncoderFactoryInterface $encoderFactory, bool $hideUserNotFoundExceptions = true)
TokenInterface authenticate(TokenInterface $token)

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

from UserAuthenticationProvider
bool supports(TokenInterface $token)

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

from UserAuthenticationProvider

Подробности

__construct(UserProviderInterface $userProvider, UserCheckerInterface $userChecker, string $providerKey, EncoderFactoryInterface $encoderFactory, bool $hideUserNotFoundExceptions = true)

Параметры

UserProviderInterface $userProvider Экземпляр UserProviderInterface
UserCheckerInterface $userChecker Интерфейс UserCheckerInterface
string $providerKey Ключ провайдера
EncoderFactoryInterface $encoderFactory Экземпляр EncoderFactoryInterface
bool $hideUserNotFoundExceptions Скрывать исключение user not found или нет

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/DaoAuthenticationProvider.html

Spec-Zone.ru

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