Added nbf check and more exception and error code handling

This commit is contained in:
Arun M 2017-12-20 18:07:08 +05:30
parent 77c11e8eb9
commit b5088a6d9c
6 changed files with 146 additions and 39 deletions

View file

@ -505,7 +505,8 @@ public: // Exposed APIs
/*!
*/
std::string encode(const jwt_header& header,
const jwt_payload& payload);
const jwt_payload& payload,
std::error_code& ec);
/*!
*/
@ -666,6 +667,11 @@ public: // Exposed APIs
/**
*/
std::string signature(std::error_code& ec) const;
/**
* Exception throwing version.
*/
std::string signature() const;
/**