cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
anshul-barco
Level 4

Clock Windback Detection does not seems to be working for me

Background:

I am using flexnetsdk.version 2017.11.0.218710 (Java)

Code change I have done:

called method enableWindbackDetection(windbackTolerance, windbackFrequency)

with windbackTolerance=1800, windbackFrequency=0

Scenario:

license expiry date: 20 Jan 2020

system date and today's date: 17 Dec 2019

license processed today on license client (LC)

  1. Today acquisition working fine, as expected, timestamp must be set to 17 Dec 2019
  2. I set clock to 31 Dec 2019 (future), acquisition working fine, as expected, timestamp must be set to 31 Dec 2019
  3. I set clock to 25 Dec 2019 (windback), acquisition working fine, not expected as windback MUST be detected (as per my understanding)

Query

  1. Is my expectation/ understanding above (in third point of scenario section) is correct ?
  2. How can I explicitly verify if I have successfully turned on windback detection ?
  3. Is there any way to see/ check/ verify the timestamp (which is used to detect windback) ?

@ejohnson1 

0 Kudos
(1) Reply
jberthold
Revenera Moderator Revenera Moderator
Revenera Moderator

HI @anshul-barco ,

I just tested this out using the "Client" example provided in the Java XT toolkit.  

First I enabled clock windback detection:

// Get ILicenseManager interface, the primary object for licensing-related functionality

ILicenseManager licenseManager = licensing.getLicenseManager();

// One day in seconds
final int tolerance = 86400;
final int frequency = 0;

// Enable clock windback detection
licenseManager.enableWindbackDetection(tolerance, frequency);

I then ran Client (modified for the features in my license), Licenses were successfully acquired:

No license file specified.
Number of features loaded from trusted storage: 2.
Number of features loaded from trial storage: 0.
Successfully acquired "f1", version 6.5, 1 count.
Successfully acquired "f2", version 99.9, 1 count.

Next I set my system clock back a few days and ran the Client example again.  I was unable to acquire the licenses as clock windback was detected:

No license file specified.
Number of features loaded from trusted storage: 2.
Number of features loaded from trial storage: 0.
Unable to acquire f1: Clock windback has been detected
Unable to acquire f2: Clock windback has been detected

I then set my date back to today and was able to acquire:

No license file specified.
Number of features loaded from trusted storage: 2.
Number of features loaded from trial storage: 0.
Successfully acquired "f1", version 6.5, 1 count.
Successfully acquired "f2", version 99.9, 1 count.

Can you try the same test with the Client example?

Thanks, 

0 Kudos