JWT-CPP
v0.7.0
A header only library for creating and validating JSON Web Tokens (JWT) in C++
Loading...
Searching...
No Matches
defaults.h
1
#ifndef JWT_CPP_BOOST_JSON_DEFAULTS_H
2
#define JWT_CPP_BOOST_JSON_DEFAULTS_H
3
4
#ifndef JWT_DISABLE_PICOJSON
5
#define JWT_DISABLE_PICOJSON
6
#endif
7
8
#include "traits.h"
9
10
namespace
jwt
{
17
using
claim
=
basic_claim<traits::boost_json>
;
18
23
inline
verifier<default_clock, traits::boost_json>
verify
() {
24
return
verify<default_clock, traits::boost_json>(
default_clock
{});
25
}
26
31
inline
builder<default_clock, traits::boost_json>
create
() {
32
return
builder<default_clock, traits::boost_json>
(
default_clock
{});
33
}
34
35
#ifndef JWT_DISABLE_BASE64
43
inline
decoded_jwt<traits::boost_json>
decode
(
const
std::string& token) {
44
return
decoded_jwt<traits::boost_json>
(token);
45
}
46
#endif
47
59
template
<
typename
Decode>
60
decoded_jwt<traits::boost_json>
decode
(
const
std::string& token, Decode
decode
) {
61
return
decoded_jwt<traits::boost_json>
(token,
decode
);
62
}
63
70
inline
jwk<traits::boost_json>
parse_jwk
(
const
traits::boost_json::string_type& token) {
71
return
jwk<traits::boost_json>
(token);
72
}
73
80
inline
jwks<traits::boost_json>
parse_jwks
(
const
traits::boost_json::string_type& token) {
81
return
jwks<traits::boost_json>
(token);
82
}
83
88
using
verify_context
=
verify_ops::verify_context<traits::boost_json>
;
89
}
// namespace jwt
90
91
#endif
// JWT_CPP_BOOST_JSON_DEFAULTS_H
jwt::basic_claim
a class to store a generic JSON value as claim
Definition
jwt.h:2549
jwt::builder
Definition
jwt.h:3089
jwt::decoded_jwt
Definition
jwt.h:2954
jwt::jwk
JSON Web Key.
Definition
jwt.h:3823
jwt::jwks
JWK Set.
Definition
jwt.h:4034
jwt::verifier
Definition
jwt.h:3560
jwt
JSON Web Token.
Definition
base.h:21
jwt::verify
verifier< default_clock, traits::boost_json > verify()
Definition
defaults.h:23
jwt::parse_jwk
jwk< json_traits > parse_jwk(const typename json_traits::string_type &jwk_)
Definition
jwt.h:4195
jwt::parse_jwks
jwks< json_traits > parse_jwks(const typename json_traits::string_type &jwks_)
Definition
jwt.h:4209
jwt::create
builder< default_clock, traits::boost_json > create()
Definition
defaults.h:31
jwt::decode
decoded_jwt< json_traits > decode(const typename json_traits::string_type &token, Decode decode)
Decode a token. This can be used to to help access important feild like 'x5c' for verifying tokens....
Definition
jwt.h:4170
jwt::default_clock
Definition
jwt.h:4126
jwt::verify_ops::verify_context
Definition
jwt.h:3341
include
jwt-cpp
traits
boost-json
defaults.h
Generated by
1.10.0