mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-14 16:58:34 +00:00
Handle exception for header and payload decode into error code
This commit is contained in:
parent
204092e588
commit
c62a9498d9
5 changed files with 92 additions and 20 deletions
|
@ -720,6 +720,23 @@ private: // private APIs
|
|||
*/
|
||||
void set_parameters();
|
||||
|
||||
public: //TODO: Not good
|
||||
/// Decode parameters
|
||||
template <typename DecodeParams, typename... Rest>
|
||||
static void set_decode_params(DecodeParams& dparams, params::detail::leeway_param l, Rest&&... args);
|
||||
|
||||
template <typename DecodeParams, typename... Rest>
|
||||
static void set_decode_params(DecodeParams& dparams, params::detail::verify_param v, Rest&&... args);
|
||||
|
||||
template <typename DecodeParams, typename... Rest>
|
||||
static void set_decode_params(DecodeParams& dparams, params::detail::issuer_param i, Rest&&... args);
|
||||
|
||||
template <typename DecodeParams, typename... Rest>
|
||||
static void set_decode_params(DecodeParams& dparams, params::detail::audience_param a, Rest&&... args);
|
||||
|
||||
template <typename DecodeParams>
|
||||
static void set_decode_params(DecodeParams& dparams);
|
||||
|
||||
private: // Data Members
|
||||
|
||||
/// JWT header section
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue