0byt3m1n1
Path:
/
home
/
mgatv524
/
lot.mgaplay.com.br
/
vendor
/
lcobucci
/
jwt
/
src
/
Validation
/
Constraint
/
[
Home
]
File: PermittedFor.php
<?php namespace Lcobucci\JWT\Validation\Constraint; use Lcobucci\JWT\Token; use Lcobucci\JWT\Validation\Constraint; use Lcobucci\JWT\Validation\ConstraintViolation; final class PermittedFor implements Constraint { /** @var string */ private $audience; public function __construct($audience) { $this->audience = $audience; } public function assert(Token $token) { if (! $token->isPermittedFor($this->audience)) { throw new ConstraintViolation( 'The token is not allowed to be used by this audience' ); } } }