Class: JwsHeader
identity_wasm.JwsHeader
Table of contents
Constructors
Methods
- alg
- setAlg
- b64
- setB64
- custom
- has
- isDisjoint
- jku
- setJku
- jwk
- setJwk
- kid
- setKid
- x5u
- setX5u
- x5c
- setX5c
- x5t
- setX5t
- x5tS256
- setX5tS256
- typ
- setTyp
- cty
- setCty
- crit
- setCrit
- url
- setUrl
- nonce
- setNonce
- toJSON
- fromJSON
- clone
Constructors
constructor
• new JwsHeader()
Create a new empty JwsHeader.
Methods
alg
▸ alg(): undefined
| JwsAlgorithm
Returns the value for the algorithm claim (alg).
Returns
undefined
| JwsAlgorithm
setAlg
▸ setAlg(value
): void
Sets a value for the algorithm claim (alg).
Parameters
Name | Type |
---|---|
value | JwsAlgorithm |
Returns
void
b64
▸ b64(): undefined
| boolean
Returns the value of the base64url-encode payload claim (b64).
Returns
undefined
| boolean
setB64
▸ setB64(value
): void
Sets a value for the base64url-encode payload claim (b64).
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
custom
▸ custom(): undefined
| Record
<string
, any
>
Additional header parameters.
Returns
undefined
| Record
<string
, any
>
has
▸ has(claim
): boolean
Parameters
Name | Type |
---|---|
claim | string |
Returns
boolean
isDisjoint
▸ isDisjoint(other
): boolean
Returns true
if none of the fields are set in both self
and other
.
Parameters
Name | Type |
---|---|
other | JwsHeader |
Returns
boolean
jku
▸ jku(): undefined
| string
Returns the value of the JWK Set URL claim (jku).
Returns
undefined
| string