1#ifndef TENDUKE_EE_LICENSING_LEASE_H
2#define TENDUKE_EE_LICENSING_LEASE_H
4#include "./checkout/LicenseCheckoutItem.h"
12namespace tenduke {
namespace ee {
namespace licensing {
Describes checked out licensed item.
Definition Lease.h:21
Lease()
Constructs new instance.
Definition Lease.h:26
const std::string leaseId
Id of the lease.
Definition Lease.h:109
const std::int64_t licenseValidUntilEpochS
The validity end time of the license that this token is consuming.
Definition Lease.h:117
const std::int64_t recommendedRefreshTimeEpochS
The recommended token refresh time.
Definition Lease.h:121
const std::string consumedVersion
Consumed version.
Definition Lease.h:99
const std::string name
Name of the licensed item.
Definition Lease.h:119
const std::int64_t issuedAtEpochS
The time when the token was issued (the lease was created).
Definition Lease.h:103
const std::string licenseId
Id of the license.
Definition Lease.h:111
const std::map< std::string, std::string > licenseProperties
If available, license properties defined for the license as custom name-value pairs.
Definition Lease.h:113
const std::int64_t licenseValidFromEpochS
The validity start time of the license that this token is consuming.
Definition Lease.h:115
const std::string requestedVersion
Requested version.
Definition Lease.h:123
const std::string hardwareId
The ID of the computer or hardware on which the license is being consumed.
Definition Lease.h:101
const std::map< std::string, std::string > additionalClaims
Additional claims.
Definition Lease.h:95
Lease(std::string name, std::string token, std::string consumedVersion, std::string licenseId, std::string leaseId, std::int64_t leaseExpiresEpochS, std::string requestedVersion="", std::string hardwareId="", std::int64_t issuedAtEpochS=0, std::string issuer="", const std::map< std::string, std::string > &licenseProperties={}, std::int64_t licenseValidFromEpochS=0, std::int64_t licenseValidUntilEpochS=INT64_MAX, std::int64_t recommendedRefreshTimeEpochS=0, std::string subject="", const std::vector< std::string > aggregatedItems={}, const std::map< std::string, std::string > &additionalClaims={})
Constructs new instance.
Definition Lease.h:48
const std::string subject
The ID of the end user’s user account or the unique ID of the client.
Definition Lease.h:125
const std::string issuer
The URL of your 10Duke Enterprise deployment, the issuer of the token.
Definition Lease.h:105
const std::int64_t leaseExpiresEpochS
Expiration time of the the lease in epoch-seconds.
Definition Lease.h:107
const std::string token
The full JWT from which this data were parsed from.
Definition Lease.h:127
const std::vector< std::string > aggregatedItems
Aggregated licensed items, if any.
Definition Lease.h:97
const std::int64_t LEASE_DOES_NOT_EXPIRE
Magic value for "lease expires epoch seconds" to denote that lease does not expire.
Definition Lease.h:15
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4