Skip to content

Commit 37a66ec

Browse files
committed
Revert "Add ttl interval to ValidationParameters"
This reverts commit d19f68d.
1 parent 9825a6c commit 37a66ec

3 files changed

Lines changed: 2 additions & 18 deletions

File tree

NetLicensingClient/src/main/java/com/labs64/netlicensing/domain/Constants.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,5 @@ public static final class ValidationResult {
197197
public static final int DEFAULT_TTL_MINUTES = 60 * 24; // 1 day
198198
}
199199

200-
public static final class ValidationParameters {
201-
public static final String TTL_INTERVAL = "ttlInterval";
202-
}
203-
204200
// CHECKSTYLE:ON
205201
}

NetLicensingClient/src/main/java/com/labs64/netlicensing/domain/vo/ValidationParameters.java

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ public class ValidationParameters {
88
private String productNumber;
99
private String licenseeName;
1010
private String licenseeSecret;
11-
private Integer ttlInterval;
1211
private Map<String, Map<String, String>> parameters;
1312

1413
/**
@@ -27,7 +26,7 @@ public String getProductNumber() {
2726

2827
/**
2928
* Sets the name for the new licensee
30-
*
29+
*
3130
* @param licenseeName
3231
* optional human-readable licensee name in case licensee will be auto-created. This parameter must not
3332
* be the name, but can be used to store any other useful string information with new licensees, up to
@@ -43,7 +42,7 @@ public String getLicenseeName() {
4342

4443
/**
4544
* Sets the licensee secret
46-
*
45+
*
4746
* @param licenseeSecret
4847
* licensee secret stored on the client side. Refer to Licensee Secret documentation for details.
4948
*/
@@ -55,14 +54,6 @@ public String getLicenseeSecret() {
5554
return licenseeSecret;
5655
}
5756

58-
public void setTtlInterval(int ttlInterval) {
59-
this.ttlInterval = ttlInterval;
60-
}
61-
62-
public Integer getTtlInterval() {
63-
return this.ttlInterval;
64-
}
65-
6657
public Map<String, Map<String, String>> getParameters() {
6758
if (parameters == null) {
6859
parameters = new HashMap<String, Map<String, String>>();

NetLicensingClient/src/main/java/com/labs64/netlicensing/service/LicenseeService.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,6 @@ public static ValidationResult validate(final Context context, final String numb
214214
if (StringUtils.isNotBlank(validationParameters.getLicenseeSecret())) {
215215
form.param(Constants.Licensee.PROP_LICENSEE_SECRET, validationParameters.getLicenseeSecret());
216216
}
217-
if (validationParameters.getTtlInterval() != null) {
218-
form.param(Constants.ValidationParameters.TTL_INTERVAL, validationParameters.getTtlInterval().toString());
219-
}
220217
int pmIndex = 0;
221218
for (final Entry<String, Map<String, String>> productModuleValidationParams : validationParameters
222219
.getParameters().entrySet()) {

0 commit comments

Comments
 (0)