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_KAZUHO_PICOJSON_DEFAULTS_H
2#define JWT_CPP_KAZUHO_PICOJSON_DEFAULTS_H
3
4#include "traits.h"
5
6namespace jwt {
13 using claim = basic_claim<traits::kazuho_picojson>;
14
19 inline verifier<default_clock, traits::kazuho_picojson> verify() {
20 return verify<default_clock, traits::kazuho_picojson>(default_clock{});
21 }
22
27 inline builder<default_clock, traits::kazuho_picojson> create() {
28 return builder<default_clock, traits::kazuho_picojson>(default_clock{});
29 }
30
31#ifndef JWT_DISABLE_BASE64
39 inline decoded_jwt<traits::kazuho_picojson> decode(const std::string& token) {
40 return decoded_jwt<traits::kazuho_picojson>(token);
41 }
42#endif
43
55 template<typename Decode>
56 decoded_jwt<traits::kazuho_picojson> decode(const std::string& token, Decode decode) {
58 }
59
66 inline jwk<traits::kazuho_picojson> parse_jwk(const traits::kazuho_picojson::string_type& token) {
67 return jwk<traits::kazuho_picojson>(token);
68 }
69
76 inline jwks<traits::kazuho_picojson> parse_jwks(const traits::kazuho_picojson::string_type& token) {
77 return jwks<traits::kazuho_picojson>(token);
78 }
79
84 using verify_context = verify_ops::verify_context<traits::kazuho_picojson>;
85} // namespace jwt
86
87#endif // JWT_CPP_KAZUHO_PICOJSON_DEFAULTS_H
Definition jwt.h:2954
JSON Web Token.
Definition base.h:21
verifier< default_clock, traits::boost_json > verify()
Definition defaults.h:23
jwk< json_traits > parse_jwk(const typename json_traits::string_type &jwk_)
Definition jwt.h:4195
jwks< json_traits > parse_jwks(const typename json_traits::string_type &jwks_)
Definition jwt.h:4209
builder< default_clock, traits::boost_json > create()
Definition defaults.h:31
basic_claim< traits::boost_json > claim
a class to store a generic Boost.JSON value as claim
Definition defaults.h:17
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
verify_ops::verify_context< traits::boost_json > verify_context
Definition defaults.h:88