/home/techb158/ileadtechnology.com/vendor/lcobucci/jwt/src
NameSizeModeActions
Claim/-0755rm
Encoding/-0755rm
Parsing/-0755rm
Signer/-0755rm
Token/-0755rm
Validation/-0755rm
Builder.php151620644editdlrm
Claim.php7320644editdlrm
Configuration.php39850644editdlrm
Exception.php1650644editdlrm
Parser.php43180644editdlrm
Signature.php17640644editdlrm
Signer.php12860644editdlrm
Token.php102120644editdlrm
ValidationData.php27200644editdlrm
Validator.php5150644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/lcobucci/jwt/src/Signature.php (1764B)
* @since 0.1.0 */ class Signature { /** * The resultant hash * * @var string */ protected $hash; /** @var string */ private $encoded; /** * Initializes the object * * @param string $hash * @param string $encoded */ public function __construct($hash, $encoded = '') { $this->hash = $hash; $this->encoded = $encoded; } /** @return self */ public static function fromEmptyData() { return new self('', ''); } /** * 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 Key|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 * * @deprecated This method has been removed from the public API in v4 * @see Signature::hash() * * @return string */ public function __toString() { return $this->hash; } /** @return string */ public function hash() { return $this->hash; } /** @return string */ public function toString() { return $this->encoded; } }