![]() |
nRF Connect SDK API 3.3.99
|
Data Structures | |
| struct | app_jwt_data |
| JWT parameters required for JWT generation and pointer to generated JWT. More... | |
Macros | |
| #define | APP_JWT_STR_MAX_LEN 900 |
| Maximum size of a JWT string, could be used to allocate JWT output buffer. | |
| #define | APP_JWT_VALID_TIME_S_MAX (7 * 24 * 60 * 60) |
| Maximum valid duration for JWTs generated by user application. | |
| #define | APP_JWT_VALID_TIME_S_DEF (10 * 60) |
| Default valid duration for JWTs generated by user application. | |
| #define | APP_JWT_CLAIM_MAX_SIZE 64 |
| Size in bytes of each JWT String field. | |
Enumerations | |
| enum | app_jwt_key_type { JWT_KEY_TYPE_CLIENT_PRIV = 2 , JWT_KEY_TYPE_ENDORSEMENT = 8 } |
| The type of key to be used for signing the JWT. More... | |
| enum | app_jwt_alg_type { JWT_ALG_TYPE_ES256 = 0 } |
| JWT signing algorithm. More... | |
Functions | |
| int | app_jwt_generate (struct app_jwt_data *const jwt) |
| Generate a JWT using the supplied parameters. If successful, the JWT string will be stored in the supplied struct. You are responsible for providing a valid pointer to store the JWT. | |