@unvision/jose
Version:
Implementation of the RFCs of the JOSE Working Group.
8 lines (7 loc) • 497 B
TypeScript
import { JsonWebEncryptionHeaderParameters } from '../jwe/jsonwebencryption.header.parameters';
import { JsonWebKey } from '../jwk/jsonwebkey';
import { JsonWebSignatureHeaderParameters } from '../jws/jsonwebsignature.header.parameters';
/**
* 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: JsonWebEncryptionHeaderParameters | JsonWebSignatureHeaderParameters) => Promise<JsonWebKey>;