class JwkValidator

Constants

ALGORITHMS

protected MAX_PARSED_KEYS

Properties

protected Key> $parsedKeys

Methods

Key
validate(array $jwk, string $algorithm)

Validate public signing material for the selected JWT algorithm.

bool
permits(array $jwk, string $algorithm)

Determine whether key metadata permits verification with the selected algorithm.

void
ensurePublic(array $jwk)

Reject private or symmetric material even in an otherwise unused key.

Details

at line 27
Key validate(array $jwk, string $algorithm)

Validate public signing material for the selected JWT algorithm.

Parameters

array $jwk
string $algorithm

Return Value

Key

at line 93
bool permits(array $jwk, string $algorithm)

Determine whether key metadata permits verification with the selected algorithm.

Parameters

array $jwk
string $algorithm

Return Value

bool

at line 129
void ensurePublic(array $jwk)

Reject private or symmetric material even in an otherwise unused key.

Parameters

array $jwk

Return Value

void