OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
lcobucci
/
jwt
/
src
/
Validation
/
Constraint
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/12/2024 10:35:50 AM
rwxr-xr-x
📄
IdentifiedBy.php
623 bytes
08/12/2024 10:35:50 AM
rw-r--r--
📄
IssuedBy.php
673 bytes
08/12/2024 10:35:50 AM
rw-r--r--
📄
LeewayCannotBeNegative.php
354 bytes
08/12/2024 10:35:51 AM
rw-r--r--
📄
PermittedFor.php
657 bytes
08/12/2024 10:35:51 AM
rw-r--r--
📄
RelatedTo.php
642 bytes
08/12/2024 10:35:51 AM
rw-r--r--
📄
SignedWith.php
1.01 KB
08/12/2024 10:35:51 AM
rw-r--r--
📄
ValidAt.php
1.95 KB
08/12/2024 10:35:51 AM
rw-r--r--
Editing: RelatedTo.php
Close
<?php declare(strict_types=1); namespace Lcobucci\JWT\Validation\Constraint; use Lcobucci\JWT\Token; use Lcobucci\JWT\Validation\Constraint; use Lcobucci\JWT\Validation\ConstraintViolation; final class RelatedTo implements Constraint { private string $subject; public function __construct(string $subject) { $this->subject = $subject; } public function assert(Token $token): void { if (! $token->isRelatedTo($this->subject)) { throw new ConstraintViolation( 'The token is not related to the expected subject' ); } } }