mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-15 01:08:31 +00:00
Added documentation comments to jwt.hpp
This commit is contained in:
parent
a5e18cc4f4
commit
3d9e15b5c8
5 changed files with 310 additions and 44 deletions
|
@ -41,7 +41,7 @@ std::ostream& operator<< (std::ostream& os, const T& obj)
|
|||
|
||||
//========================================================================
|
||||
|
||||
void jwt_header::decode(const string_view enc_str, std::error_code& ec) noexcept
|
||||
void jwt_header::decode(const string_view enc_str, std::error_code& ec)
|
||||
{
|
||||
ec.clear();
|
||||
std::string json_str = base64_decode(enc_str);
|
||||
|
@ -85,7 +85,7 @@ void jwt_header::decode(const string_view enc_str, std::error_code& ec) noexcept
|
|||
return;
|
||||
}
|
||||
|
||||
void jwt_header::decode(const string_view enc_str) throw(DecodeError)
|
||||
void jwt_header::decode(const string_view enc_str)
|
||||
{
|
||||
std::error_code ec;
|
||||
decode(enc_str, ec);
|
||||
|
@ -95,7 +95,7 @@ void jwt_header::decode(const string_view enc_str) throw(DecodeError)
|
|||
return;
|
||||
}
|
||||
|
||||
void jwt_payload::decode(const string_view enc_str, std::error_code& ec) noexcept
|
||||
void jwt_payload::decode(const string_view enc_str, std::error_code& ec)
|
||||
{
|
||||
ec.clear();
|
||||
std::string json_str = base64_decode(enc_str);
|
||||
|
@ -117,7 +117,7 @@ void jwt_payload::decode(const string_view enc_str, std::error_code& ec) noexcep
|
|||
return;
|
||||
}
|
||||
|
||||
void jwt_payload::decode(const string_view enc_str) throw(DecodeError)
|
||||
void jwt_payload::decode(const string_view enc_str)
|
||||
{
|
||||
std::error_code ec;
|
||||
decode(enc_str, ec);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue