jwt.h
Go to the documentation of this file.
1 
11 #ifndef JWT_H_
12 #define JWT_H_
13 
14 #include "security_handler.h"
15 #include "json_util.h"
16 
20 typedef struct jwt_t
21 {
27 } jwt_t;
28 
43 
50 MCL_LOCAL char *jwt_get_token(jwt_t *jwt);
51 
57 MCL_LOCAL void jwt_destroy(jwt_t **jwt);
58 
59 #endif //JWT_H_
#define MCL_LOCAL
Json utility module header file.
void mcl_json_t
Definition: mcl_json_util.h:24
MCL_LOCAL mcl_error_t jwt_initialize(security_handler_t *security_handler, E_MCL_SECURITY_PROFILE security_profile, char *tenant, jwt_t **jwt)
Definition: jwt.c:62
mcl_int32_t mcl_error_t
mcl_time_t issued_at
Time of issue.
Definition: jwt.h:26
security_handler_t * security_handler
Security handler.
Definition: jwt.h:24
time_t mcl_time_t
mcl_json_t * payload
Payload of JWT.
Definition: jwt.h:23
MCL_LOCAL void jwt_destroy(jwt_t **jwt)
Definition: jwt.c:124
E_MCL_SECURITY_PROFILE security_profile
Security profile.
Definition: jwt.h:25
Definition: jwt.h:20
mcl_json_t * header
Header of JWT.
Definition: jwt.h:22
MCL_LOCAL char * jwt_get_token(jwt_t *jwt)
Definition: jwt.c:90
Security handler module header file.
E_MCL_SECURITY_PROFILE