[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/lcobucci/jwt/src/ -> Signer.php (summary)

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
File Size: 59 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Signer:: (4 methods):
  getAlgorithmId()
  modifyHeader()
  sign()
  verify()


Interface: Signer  - X-Ref

Basic interface for token signers

getAlgorithmId()   X-Ref
Returns the algorithm id

return: string

modifyHeader(array &$headers)   X-Ref
Apply changes on headers according with algorithm

param: array $headers

sign($payload, $key)   X-Ref
Returns a signature for given data

param: string $payload
param: Key|string $key
return: Signature

verify($expected, $payload, $key)   X-Ref
Returns if the expected hash matches with the data and key

param: string $expected
param: string $payload
param: Key|string $key
return: boolean



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer