10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
tenduke::ee::licensing::impl::LeaseOrError Class Reference

#include <LicenseTokenParser.h>

Detailed Description

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.
 

Constructor & Destructor Documentation

◆ LeaseOrError()

tenduke::ee::licensing::impl::LeaseOrError::LeaseOrError ( tenduke::ee::licensing::Lease  lease,
tenduke::ee::licensing::LicensingError  error,
bool  isError 
)
inline

Constructs new instance.

Parameters
lease-
error-
isError-

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