|
JWTXX
C++ library for JWT
|
Represents the result of validation. If validation is successfull an object of this class is equivalent to 'true' boolean value. Otherwise it is equivalent ot 'false' and contains an error message. More...
#include <jwt.h>
Public Member Functions | |
| operator bool () const noexcept | |
| Cast operator to bool. | |
| const std::string & | message () const noexcept |
| Error message accessor. | |
Static Public Member Functions | |
| static ValidationResult | ok () noexcept |
| 'Success' constructor. | |
| static ValidationResult | failure (const std::string &message) noexcept |
| 'Failure' constructor. | |
Represents the result of validation. If validation is successfull an object of this class is equivalent to 'true' boolean value. Otherwise it is equivalent ot 'false' and contains an error message.
|
inlinestaticnoexcept |
'Failure' constructor.
| message | error message. |