|
0
|
1 |
<?php |
|
|
2 |
|
|
|
3 |
/* |
|
|
4 |
* This file is part of the Symfony package. |
|
|
5 |
* |
|
|
6 |
* (c) Fabien Potencier <fabien@symfony.com> |
|
|
7 |
* |
|
|
8 |
* For the full copyright and license information, please view the LICENSE |
|
|
9 |
* file that was distributed with this source code. |
|
|
10 |
*/ |
|
|
11 |
|
|
|
12 |
namespace Symfony\Component\Security\Acl\Model; |
|
|
13 |
|
|
|
14 |
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; |
|
|
15 |
|
|
|
16 |
/** |
|
|
17 |
* Interface for retrieving security identities from tokens |
|
|
18 |
* |
|
|
19 |
* @author Johannes M. Schmitt <schmittjoh@gmail.com> |
|
|
20 |
*/ |
|
|
21 |
interface SecurityIdentityRetrievalStrategyInterface |
|
|
22 |
{ |
|
|
23 |
/** |
|
|
24 |
* Retrieves the available security identities for the given token |
|
|
25 |
* |
|
|
26 |
* The order in which the security identities are returned is significant. |
|
|
27 |
* Typically, security identities should be ordered from most specific to |
|
|
28 |
* least specific. |
|
|
29 |
* |
|
|
30 |
* @param TokenInterface $token |
|
|
31 |
* @return array of SecurityIdentityInterface implementations |
|
|
32 |
*/ |
|
|
33 |
function getSecurityIdentities(TokenInterface $token); |
|
|
34 |
} |