UNPKG

@guarani/jose

Version:

Implementation of the RFCs of the JOSE Working Group.

8 lines (7 loc) 473 B
import { JsonWebEncryptionHeaderParams } from '../jwe/jsonwebencryption-header.params'; import { JsonWebKey } from '../jwk/jsonwebkey'; import { JsonWebSignatureHeaderParams } from '../jws/jsonwebsignature-header.params'; /** * Signature of a JSON Web Key Loader, that loads a key based on the parameters of the provided JOSE Header. */ export declare type JsonWebKeyLoader = (header: JsonWebEncryptionHeaderParams | JsonWebSignatureHeaderParams) => Promise<JsonWebKey>;