[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/web-token/jwt-core/ -> JWK.php (summary)

(no description)

File Size: 146 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

JWK:: (8 methods):
  __construct()
  createFromJson()
  jsonSerialize()
  get()
  has()
  all()
  thumbprint()
  toPublic()


Class: JWK  - X-Ref

__construct(array $values)   X-Ref
Creates a JWK object using the given values.
The member "kty" is mandatory. Other members are NOT checked.


createFromJson(string $json)   X-Ref
Creates a JWK object using the given Json string.

return: JWK

jsonSerialize()   X-Ref
Returns the values to be serialized.


get(string $key)   X-Ref
Get the value with a specific key.

param: string $key The key
return: null|mixed

has(string $key)   X-Ref
Returns true if the JWK has the value identified by.

param: string $key The key

all()   X-Ref
Get all values stored in the JWK object.

return: array Values of the JWK object

thumbprint(string $hash_algorithm)   X-Ref
Returns the thumbprint of the key.


toPublic()   X-Ref
Returns the associated public key.
This method has no effect for:
- public keys
- shared keys
- unknown keys.

Known keys are "oct", "RSA", "EC" and "OKP".

return: JWK



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