[ 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 IdentifiedBy implements Constraint 10 { 11 /** @var string */ 12 private $id; 13 14 /** @param string $id */ 15 public function __construct($id) 16 { 17 $this->id = $id; 18 } 19 20 public function assert(Token $token) 21 { 22 if (! $token->isIdentifiedBy($this->id)) { 23 throw new ConstraintViolation( 24 'The token is not identified with the expected ID' 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 |