Skip to content

Latest commit

 

History

History
124 lines (63 loc) · 2.16 KB

CompactJWEHeaderParameters.md

File metadata and controls

124 lines (63 loc) · 2.16 KB

Interface: CompactJWEHeaderParameters

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.

Recognized Compact JWE Header Parameters, any other Header Members may also be present.

Indexable

[propName: string]: unknown

Properties

alg

alg: string

JWE "alg" (Algorithm) Header Parameter

See

Algorithm Key Requirements


enc

enc: string

JWE "enc" (Encryption Algorithm) Header Parameter

See

Algorithm Key Requirements


crit?

optional crit: string[]

JWE "crit" (Critical) Header Parameter


cty?

optional cty: string

"cty" (Content Type) Header Parameter


jku?

optional jku: string

"jku" (JWK Set URL) Header Parameter


jwk?

optional jwk: Pick<JWK, "x" | "y" | "kty" | "crv" | "e" | "n">

"jwk" (JSON Web Key) Header Parameter


kid?

optional kid: string

"kid" (Key ID) Header Parameter


typ?

optional typ: string

"typ" (Type) Header Parameter


x5c?

optional x5c: string[]

"x5c" (X.509 Certificate Chain) Header Parameter


x5t?

optional x5t: string

"x5t" (X.509 Certificate SHA-1 Thumbprint) Header Parameter


x5u?

optional x5u: string

"x5u" (X.509 URL) Header Parameter


zip?

optional zip: string

JWE "zip" (Compression Algorithm) Header Parameter. This parameter is not supported anymore.

Deprecated

Compression of data SHOULD NOT be done before encryption, because such compressed data often reveals information about the plaintext.

See

Avoid Compression of Encryption Inputs