Conscience Core
tmp-conscience-engine
libs
jwt-cpp
traits
boost-json
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
{
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
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
) {
58
return
decoded_jwt<traits::boost_json>
(token,
decode
);
59
}
60
67
inline
jwk<traits::boost_json>
parse_jwk
(
const
traits::boost_json::string_type
& token) {
68
return
jwk<traits::boost_json>
(token);
69
}
70
77
inline
jwks<traits::boost_json>
parse_jwks
(
const
traits::boost_json::string_type
& token) {
78
return
jwks<traits::boost_json>
(token);
79
}
80
85
using
verify_context
=
verify_ops::verify_context<traits::boost_json>
;
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
Generated by
1.8.17