BadgeInterface.php 760 B

123456789101112131415161718192021222324252627282930
  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\Http\Authenticator\Passport\Badge;
  11. /**
  12. * Passport badges allow to add more information to a passport (e.g. a CSRF token).
  13. *
  14. * @author Wouter de Jong <wouter@wouterj.nl>
  15. *
  16. * @experimental in 5.2
  17. */
  18. interface BadgeInterface
  19. {
  20. /**
  21. * Checks if this badge is resolved by the security system.
  22. *
  23. * After authentication, all badges must return `true` in this method in order
  24. * for the authentication to succeed.
  25. */
  26. public function isResolved(): bool;
  27. }