Main Page
Data Structures
Files
File List
Globals
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
{
22
mcl_json_t
*
header
;
23
mcl_json_t
*
payload
;
24
security_handler_t
*
security_handler
;
25
E_MCL_SECURITY_PROFILE
security_profile
;
26
mcl_time_t
issued_at
;
27
}
jwt_t
;
28
42
MCL_LOCAL
mcl_error_t
jwt_initialize
(
security_handler_t
*
security_handler
,
E_MCL_SECURITY_PROFILE
security_profile
,
char
*tenant,
jwt_t
**jwt);
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_
MCL_LOCAL
#define MCL_LOCAL
Definition:
mcl_config_setup.h:46
json_util.h
Json utility module header file.
mcl_json_t
void mcl_json_t
Definition:
mcl_json_util.h:24
jwt_initialize
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_error_t
mcl_int32_t mcl_error_t
Definition:
mcl_core_common.h:36
jwt_t::issued_at
mcl_time_t issued_at
Time of issue.
Definition:
jwt.h:26
jwt_t::security_handler
security_handler_t * security_handler
Security handler.
Definition:
jwt.h:24
mcl_time_t
time_t mcl_time_t
Definition:
mcl_core_common.h:35
jwt_t::payload
mcl_json_t * payload
Payload of JWT.
Definition:
jwt.h:23
security_handler_t
Definition:
security_handler.h:30
jwt_destroy
MCL_LOCAL void jwt_destroy(jwt_t **jwt)
Definition:
jwt.c:124
jwt_t::security_profile
E_MCL_SECURITY_PROFILE security_profile
Security profile.
Definition:
jwt.h:25
jwt_t
Definition:
jwt.h:20
jwt_t::header
mcl_json_t * header
Header of JWT.
Definition:
jwt.h:22
jwt_get_token
MCL_LOCAL char * jwt_get_token(jwt_t *jwt)
Definition:
jwt.c:90
security_handler.h
Security handler module header file.
E_MCL_SECURITY_PROFILE
E_MCL_SECURITY_PROFILE
Definition:
mcl_core_common.h:86
mcl_core
src
jwt.h
Generated by
1.8.11