Conscience Core
defaults.h
Go to the documentation of this file.
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 {
18 
24  return verify<default_clock, traits::boost_json>(default_clock{});
25  }
26 
30  inline builder<traits::boost_json> create() { return builder<traits::boost_json>(); }
31 
32 #ifndef JWT_DISABLE_BASE64
33 
40  inline decoded_jwt<traits::boost_json> decode(const std::string& token) {
41  return decoded_jwt<traits::boost_json>(token);
42  }
43 #endif
44 
56  template<typename Decode>
57  decoded_jwt<traits::boost_json> decode(const std::string& token, Decode decode) {
59  }
60 
68  return jwk<traits::boost_json>(token);
69  }
70 
78  return jwks<traits::boost_json>(token);
79  }
80 
86 } // namespace jwt
87 
88 #endif // JWT_CPP_BOOST_JSON_DEFAULTS_H
jwt::traits::boost_json::string_type
std::string string_type
Definition: traits.h:17
jwt::verifier
Definition: jwt.h:3107
jwt::decoded_jwt
Definition: jwt.h:2564
jwt::jwk
JSON Web Key.
Definition: jwt.h:3353
jwt::default_clock
Definition: jwt.h:3629
jwt::jwks
JWK Set.
Definition: jwt.h:3560
jwt::verify_ops::verify_context
Definition: jwt.h:2930
jwt::parse_jwk
jwk< json_traits > parse_jwk(const typename json_traits::string_type &token)
Definition: jwt.h:3677
jwt
JSON Web Token.
Definition: base.h:20
jwt::verify
verifier< Clock, json_traits > verify(Clock c)
Definition: jwt.h:3622
traits.h
jwt::decode
decoded_jwt< json_traits > decode(const typename json_traits::string_type &token, Decode decode)
Definition: jwt.h:3660
jwt::create
builder< json_traits > create()
Definition: jwt.h:3647
jwt::basic_claim
a class to store a generic JSON value as claim
Definition: jwt.h:2163
jwt::parse_jwks
jwks< json_traits > parse_jwks(const typename json_traits::string_type &token)
Definition: jwt.h:3682