Files
jose/docs/interfaces/jwe_general_decrypt.GeneralDecryptGetKey.md

1.8 KiB

Interface: GeneralDecryptGetKey

💗 Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.


Interface for General JWE Decryption dynamic key resolution. No token components have been verified at the time of this function call.

Callable

GeneralDecryptGetKey

â–¸ GeneralDecryptGetKey(protectedHeader, token): Uint8Array | KeyLike | Promise<Uint8Array | KeyLike>

Dynamic key resolution function. No token components have been verified at the time of this function call.

If you cannot match a key suitable for the token, throw an error instead.

Parameters

Name Type Description
protectedHeader JWEHeaderParameters JWE or JWS Protected Header.
token FlattenedJWE The consumed JWE or JWS token.

Returns

Uint8Array | KeyLike | Promise<Uint8Array | KeyLike>