SecurityIdentityRetrievalStrategyInterface.php 1.0 KB

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