/home/techb158/ileadtechnology.com/vendor/lcobucci/jwt/src/Signer
NameSizeModeActions
Ecdsa/-0755rm
Hmac/-0755rm
Key/-0755rm
Rsa/-0755rm
BaseSigner.php19030644editdlrm
CannotSignPayload.php4060644editdlrm
Ecdsa.php15540644editdlrm
Hmac.php9530644editdlrm
InvalidKeyProvided.php5650644editdlrm
Key.php22810644editdlrm
Keychain.php9940644editdlrm
None.php3400644editdlrm
OpenSSL.php27400644editdlrm
Rsa.php4840644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/lcobucci/jwt/src/Signer/BaseSigner.php (1903B)
* @since 0.1.0 */ abstract class BaseSigner implements Signer { /** * {@inheritdoc} */ public function modifyHeader(array &$headers) { $headers['alg'] = $this->getAlgorithmId(); } /** * {@inheritdoc} */ public function sign($payload, $key) { return new Signature($this->createHash($payload, $this->getKey($key))); } /** * {@inheritdoc} */ public function verify($expected, $payload, $key) { return $this->doVerify($expected, $payload, $this->getKey($key)); } /** * @param Key|string $key * * @return Key */ private function getKey($key) { if (is_string($key)) { trigger_error('Implicit conversion of keys from strings is deprecated. Please use InMemory or LocalFileReference classes.', E_USER_DEPRECATED); $key = new Key($key); } return $key; } /** * Creates a hash with the given data * * @internal * * @param string $payload * @param Key $key * * @return string */ abstract public function createHash($payload, Key $key); /** * Performs the signature verification * * @internal * * @param string $expected * @param string $payload * @param Key $key * * @return boolean */ abstract public function doVerify($expected, $payload, Key $key); }