mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-15 01:08:31 +00:00
Added signature validation test
This commit is contained in:
parent
cb1847142e
commit
204092e588
6 changed files with 75 additions and 2 deletions
|
@ -45,7 +45,7 @@ public:
|
|||
|
||||
/**
|
||||
*/
|
||||
class DecodeError final: public std::runtime_error
|
||||
class DecodeError: public std::runtime_error
|
||||
{
|
||||
public:
|
||||
/**
|
||||
|
@ -56,6 +56,19 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
/**
|
||||
*/
|
||||
class SignatureFormatError final : public std::runtime_error
|
||||
{
|
||||
public:
|
||||
/**
|
||||
*/
|
||||
SignatureFormatError(std::string msg)
|
||||
: std::runtime_error(std::move(msg))
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
*/
|
||||
class VerificationError : public std::runtime_error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue