[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 namespace Lcobucci\JWT\Validation\Constraint; 4 5 use Lcobucci\JWT\Token; 6 use Lcobucci\JWT\Validation\Constraint; 7 use Lcobucci\JWT\Validation\ConstraintViolation; 8 9 final class IssuedBy implements Constraint 10 { 11 /** @var string[] */ 12 private $issuers; 13 14 /** @param list<string> $issuers */ 15 public function __construct(...$issuers) 16 { 17 $this->issuers = $issuers; 18 } 19 20 public function assert(Token $token) 21 { 22 if (! $token->hasBeenIssuedBy(...$this->issuers)) { 23 throw new ConstraintViolation( 24 'The token was not issued by the given issuers' 25 ); 26 } 27 } 28 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |