ArrayJwkSet
in package
implements
JwkSet
Represents a JSON Web Key Set backed by an array.
Table of Contents
Interfaces
- JwkSet
- Represents a JSON Web Key Set.
Methods
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- getKey() : Jwk
- Attempts to match a key with the given arguments.
- getKeys() : array<string|int, Jwk>
- Gets all keys contained in this set.
- getPublicKeySet() : JwkSet
- Gets an instance of JwkSet that only contains public keys.
- jsonSerialize() : mixed
Methods
__construct()
public
__construct(array<string|int, Jwk> $keys) : mixed
Parameters
- $keys : array<string|int, Jwk>
Tags
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>getKey()
Attempts to match a key with the given arguments.
public
getKey([string|null $keyId = null ][, string|null $algo = null ]) : Jwk
Parameters
- $keyId : string|null = null
-
Key ID, equivalent to the "kid" field.
- $algo : string|null = null
-
Algorithm, equivalent to the "alg" field.
Return values
JwkgetKeys()
Gets all keys contained in this set.
public
getKeys() : array<string|int, Jwk>
Return values
array<string|int, Jwk>getPublicKeySet()
Gets an instance of JwkSet that only contains public keys.
public
getPublicKeySet() : JwkSet
Return values
JwkSetjsonSerialize()
public
jsonSerialize() : mixed
Attributes
- #[ReturnTypeWillChange]