JWTXX
C++ library for JWT
Loading...
Searching...
No Matches
JWTXX::ValidationResult Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ failure()

static ValidationResult JWTXX::ValidationResult::failure ( const std::string & message)
inlinestaticnoexcept

'Failure' constructor.

Parameters
messageerror message.

The documentation for this class was generated from the following file: