Skip to content

Commit 789b013

Browse files
committed
new LM NodeLocked, LicenseeSecret deprecated
1 parent 5802f7d commit 789b013

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

client_demo/netlicensing_client_demo.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ int main(int argc, char* argv[]) {
370370

371371
ValidationParameters vParams = ValidationParameters();
372372
vParams.setProductModuleValidationParameters(productModuleNumber, "paramKey", "paramValue");
373-
vParams.setLicenseeSecret(randomNumber);
374373
vParams.setLicenseeName(licenseeName);
375374
vParams.setProductNumber(productNumber);
376375
ValidationResult vres = LicenseeService::validate(ctx, licenseeNumber, vParams);

include/netlicensing/constants.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ namespace netlicensing {
5757
static const char* const DESCRIPTION = "description";
5858
static const char* const LICENSING_INFO = "licensingInfo";
5959
static const char* const DISCOUNTS = "discounts";
60-
static const char* const PROP_LICENSEE_SECRET_MODE = "licenseeSecretMode";
6160
static const char* const PROP_VAT_MODE = "vatMode";
6261

6362
//Discount
@@ -70,6 +69,7 @@ namespace netlicensing {
7069
static const char* const PRODUCT_MODULE_NUMBER = "productModuleNumber";
7170
static const char* const PRODUCT_MODULE_NAME = "productModuleName";
7271
static const char* const LICENSING_MODEL = "licensingModel";
72+
static const char* const PROP_LICENSEE_SECRET_MODE = "licenseeSecretMode";
7373

7474
//LicenseTemplate
7575
static const char* const LICENSE_TEMPLATE_ENDPOINT_PATH = "licensetemplate";
@@ -84,12 +84,12 @@ namespace netlicensing {
8484
static const char* const LICENSEE_NUMBER = "licenseeNumber";
8585
static const char* const SOURCE_LICENSEE_NUMBER = "sourceLicenseeNumber";
8686
static const char* const PROP_LICENSEE_NAME = "licenseeName";
87-
static const char* const PROP_LICENSEE_SECRET = "licenseeSecret";
8887
static const char* const PROP_MARKED_FOR_TRANSFER = "markedForTransfer";
8988

9089
//License
9190
static const char* const LICENSE_ENDPOINT_PATH = "license";
9291
static const char* const LICENSE_NUMBER = "licenseNumber";
92+
static const char* const PROP_LICENSEE_SECRET = "licenseeSecret";
9393

9494
//Transaction
9595
static const char* const TRANSACTION_ENDPOINT_PATH = "transaction";
@@ -127,6 +127,7 @@ namespace netlicensing {
127127
static const char* const LICENSING_MODEL_PRICING_TABLE_PLAN = "plan";
128128
static const char* const LICENSING_MODEL_PRICING_TABLE_SKU = "sku";
129129
static const char* const LICENSING_MODEL_QUOTA_NAME = "Quota";
130+
static const char* const LICENSING_MODEL_NODE_LOCKED_NAME = "NodeLocked";
130131

131132
} // namespace netlicensing
132133

include/netlicensing/validation_parameters.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ namespace netlicensing {
5454
* @param licenseeSecret
5555
* licensee secret stored on the client side. Refer to Licensee Secret documentation for details.
5656
*/
57+
[[deprecated("use NodeLocked licensing model instead")]]
5758
void setLicenseeSecret(const String_t& licenseeSecret) {
5859
licenseeSecret_i = licenseeSecret;
5960
}
6061

62+
[[deprecated("use NodeLocked licensing model instead")]]
6163
const String_t& getLicenseeSecret() const {
6264
return licenseeSecret_i;
6365
}

0 commit comments

Comments
 (0)