Spec-Zone.ru › Symfony 3.2

DaoAuthenticationProvider

class DaoAuthenticationProvider extends UserAuthenticationProvider

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

Methods

__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

Details

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

Конструктор.

Parameters

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

TokenInterface authenticate(TokenInterface $token)

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

Parameters

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

Return Value

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

Exceptions

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

bool supports(TokenInterface $token)

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

Parameters

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

Return Value

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

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

Spec-Zone.ru

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