a class to store a generic JSON value as claim
More...
#include <goby/util/thirdparty/jwt-cpp/jwt.h>
|
| using | set_t = std::set< typename json_traits::string_type > |
| |
template<typename json_traits>
class jwt::basic_claim< json_traits >
a class to store a generic JSON value as claim
- Template Parameters
-
| json_traits | : JSON implementation traits |
- See also
- RFC 7519: JSON Web Token (JWT)
Definition at line 2586 of file jwt.h.
◆ set_t
template<typename json_traits >
| using jwt::basic_claim< json_traits >::set_t = std::set<typename json_traits::string_type> |
Order list of strings
Definition at line 2612 of file jwt.h.
◆ basic_claim() [1/9]
template<typename json_traits >
◆ basic_claim() [2/9]
template<typename json_traits >
◆ basic_claim() [3/9]
template<typename json_traits >
◆ ~basic_claim()
template<typename json_traits >
◆ basic_claim() [4/9]
template<typename json_traits >
◆ basic_claim() [5/9]
template<typename json_traits >
◆ basic_claim() [6/9]
template<typename json_traits >
◆ basic_claim() [7/9]
template<typename json_traits >
◆ basic_claim() [8/9]
template<typename json_traits >
◆ basic_claim() [9/9]
template<typename json_traits >
template<typename Iterator >
◆ as_array()
template<typename json_traits >
Get the contained JSON value as an array
- Returns
- content as array
- Exceptions
-
| std::bad_cast | Content was not an array |
Definition at line 2682 of file jwt.h.
◆ as_boolean()
template<typename json_traits >
Get the contained JSON value as a bool
- Returns
- content as bool
- Exceptions
-
| std::bad_cast | Content was not a bool |
Definition at line 2709 of file jwt.h.
◆ as_date()
template<typename json_traits >
Get the contained JSON value as a date.
If the value is a decimal, it is rounded to the closest integer
- Returns
- content as date
- Exceptions
-
| std::bad_cast | Content was not a date |
Definition at line 2671 of file jwt.h.
◆ as_integer()
template<typename json_traits >
Get the contained JSON value as an integer
- Returns
- content as int
- Exceptions
-
| std::bad_cast | Content was not an int |
Definition at line 2702 of file jwt.h.
◆ as_number()
template<typename json_traits >
Get the contained JSON value as a number
- Returns
- content as double
- Exceptions
-
| std::bad_cast | Content was not a number |
Definition at line 2716 of file jwt.h.
◆ as_set()
template<typename json_traits >
Get the contained JSON value as a set of strings
- Returns
- content as set of strings
- Exceptions
-
| std::bad_cast | Content was not an array of string |
Definition at line 2689 of file jwt.h.
◆ as_string()
template<typename json_traits >
Get the contained JSON value as a string
- Returns
- content as string
- Exceptions
-
| std::bad_cast | Content was not a string |
Definition at line 2661 of file jwt.h.
◆ get_type()
template<typename json_traits >
Get type of contained JSON value
- Returns
- Type
- Exceptions
-
| std::logic_error | An internal error occurred |
Definition at line 2654 of file jwt.h.
◆ operator<<()
template<typename json_traits >
Serialize claim to output stream from wrapped JSON value
- Returns
- output stream
Definition at line 2647 of file jwt.h.
◆ operator=() [1/2]
template<typename json_traits >
◆ operator=() [2/2]
template<typename json_traits >
◆ operator>>()
template<typename json_traits >
Parse input stream into underlying JSON value
- Returns
- input stream
Definition at line 2641 of file jwt.h.
◆ to_json()
template<typename json_traits >
Get wrapped JSON value
- Returns
- Wrapped JSON value
Definition at line 2635 of file jwt.h.
The documentation for this class was generated from the following file:
- goby/util/thirdparty/jwt-cpp/jwt.h