Sign in

getPublicSigKeyFromIssuerJwks

getPublicSigKeyFromIssuerJwks(jwks: Jwk[], header: JwsHeaderParameters): Promise<CryptoKey>

Retrieves a public CryptoKey from a JWK set based on the JWS header.

Parameters

ParameterTypeDescription
jwksJwk[]The set of JSON Web Keys.
headerJwsHeaderParametersThe JWS header containing the algorithm and key ID.

Returns

Promise<CryptoKey>

A promise that resolves to the CryptoKey.

Throws

If no applicable key or multiple keys are found or the algorithm is unsupported.

© 2024 MonoCloud. All rights reserved.