18 lines
697 B
Plaintext
18 lines
697 B
Plaintext
/**
|
|
* JOSE Protected Header Decoding (JWE, JWS, all serialization syntaxes)
|
|
*
|
|
* @module
|
|
*/
|
|
import type * as types from '../types.d.ts';
|
|
/** JWE and JWS Header Parameters */
|
|
export type ProtectedHeaderParameters = types.JWSHeaderParameters & types.JWEHeaderParameters;
|
|
/**
|
|
* Decodes the Protected Header of a JWE/JWS/JWT token utilizing any JOSE serialization.
|
|
*
|
|
* This function is exported (as a named export) from the main `'jose'` module entry point as well
|
|
* as from its subpath export `'jose/decode/protected_header'`.
|
|
*
|
|
* @param token JWE/JWS/JWT token in any JOSE serialization.
|
|
*/
|
|
export declare function decodeProtectedHeader(token: string | object): ProtectedHeaderParameters;
|