JWT(header: Object, payload: Object, signingKey: String, algorithm: String): String
Generate JWT with header, payload, and signature by specific algorithm.
Introduced in DataWeave version 2.6.0.
Parameters
| Name | Type | Description |
|---|---|---|
|
|
JWT header. |
|
|
JWT payload. |
|
|
Signing key. |
|
|
HMAC algorithm. |
JWT(header: Object, payload: Object, signingKey: String): String
Generate JWT with a header, payload, and key signed with HMAC-SHA256.
Introduced in DataWeave version 2.6.0.
Parameters
| Name | Type | Description |
|---|---|---|
|
|
JWT header. |
|
|
JWT payload. |
|
|
Signing key. |
JWT(payload: Object, signingKey: String): String
Generate JWT with a payload, automatically generated header, and key signed with HMAC-SHA256.
Introduced in DataWeave version 2.6.0.