Spec-Zone.ru › Symfony 2.7

Стратегия извлечения идентификаторов безопасности

класс SecurityIdentityRetrievalStrategy реализует SecurityIdentityRetrievalStrategyInterface

Стратегия для извлечения идентификаторов безопасности.

Методы

__construct(RoleHierarchyInterface $roleHierarchy, AuthenticationTrustResolver $authenticationTrustResolver)
SecurityIdentityInterface[] getSecurityIdentities(TokenInterface $token)

Извлекает доступные идентификаторы безопасности для данного токена.

Подробности

__construct(RoleHierarchyInterface $roleHierarchy, AuthenticationTrustResolver $authenticationTrustResolver)

Параметры

RoleHierarchyInterface $roleHierarchy
AuthenticationTrustResolver $authenticationTrustResolver

SecurityIdentityInterface[] getSecurityIdentities(TokenInterface $token)

Извлекает доступные идентификаторы безопасности для данного токена.

Порядок возвращения идентификаторов безопасности важен. Обычно идентификаторы безопасности должны быть упорядочены от наиболее конкретных к наименее конкретным.

Параметры

TokenInterface $token

Значение возврата

SecurityIdentityInterface[] Массив реализаций SecurityIdentityInterface

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Security/Acl/Domain/SecurityIdentityRetrievalStrategy.html

Spec-Zone.ru

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