| 
    10Duke Enterprise C++ Client
    
   | 
 
#include <LicenseTokenParser.h>
Describes whether given token is a lease or an error.
A token returned by the authz-api is opaque and can represent either lease or an error. Whether given represents a lease or an error can be only determined by parsing the token and looking at the claims in the token. The tenduke::ee::licensing::impl::LicenseTokenParser parser returns LeaseOrError for this reason. 
Public Member Functions | |
| LeaseOrError (tenduke::ee::licensing::Lease lease, tenduke::ee::licensing::LicensingError error, bool isError) | |
| Constructs new instance.   | |
| LeaseOrError () | |
| No-arg constructs new instance.  | |
| bool | isLease () const | 
If true, this is a lease.  | |
Public Attributes | |
| tenduke::ee::licensing::Lease | lease | 
| Lease?  | |
| tenduke::ee::licensing::LicensingError | error | 
| Or an error?  | |
| bool | isError | 
If true, this is an error.  | |
      
  | 
  inline | 
Constructs new instance.
| lease | - | 
| error | - | 
| isError | - |