Railgun JWT

JwkSet extends JsonSerializable

Represents a JSON Web Key Set.

Table of Contents

Methods

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.

Methods

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.

Tags
throws
RuntimeException

If no match could be found.

throws
InvalidArgumentException

If any of the argument types were not as expected.

Return values
Jwk

getKeys()

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
JwkSet

        
On this page

Search results