summaryrefslogtreecommitdiffstats
path: root/Acl/Model/SecurityIdentityRetrievalStrategyInterface.php
blob: 6a8bb4c802847b81b44a6e11281705874bec5bcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

namespace Symfony\Component\Security\Acl\Model;

use Symfony\Component\Security\Authentication\Token\TokenInterface;

/**
 * Interface for retrieving security identities from tokens
 *
 * @author Johannes M. Schmitt <schmittjoh@gmail.com>
 */
interface SecurityIdentityRetrievalStrategyInterface
{
    /**
     * Retrieves the available security identities for the given token
     *
     * The order in which the security identities are returned is significant.
     * Typically, security identities should be ordered from most specific to
     * least specific.
     *
     * @param TokenInterface $token
     * @return array of SecurityIdentityInterface implementations
     */
    function getSecurityIdentities(TokenInterface $token);
}