[ 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 PermittedFor implements Constraint 10 { 11 /** @var string */ 12 private $audience; 13 14 public function __construct($audience) 15 { 16 $this->audience = $audience; 17 } 18 19 public function assert(Token $token) 20 { 21 if (! $token->isPermittedFor($this->audience)) { 22 throw new ConstraintViolation( 23 'The token is not allowed to be used by this audience' 24 ); 25 } 26 } 27 }
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 |