Skip to content

Releases: Cryptolens/cryptolens-java

v1.17.3: Update dependencies causing errors in the previous built

21 Oct 14:57
Compare
Choose a tag to compare

v1.17.2: Update the OSHI library

21 Oct 09:00
Compare
Choose a tag to compare
Update modelVersion=3 in Activate

v1.17: Update to ModelVersion=3 in Activate

20 Oct 09:45
Compare
Choose a tag to compare

Update the method to use ModelVersion=3 in Activate: https://app.cryptolens.io/docs/api/v3/activate?modelVersion=3

This update will affect the result in ActivateMachines (in a LicenseKey) in several ways:

  • It will return all floating and node-licenses.
  • ActivatedMachines have two new fields: "FriendlyName" and "FloatingExpires".

v1.16: Add overload methods in Key class that return the API error message

12 Sep 12:48
Compare
Choose a tag to compare

In this release we have added an additional overload to Key.Activate that accepts the APIError object. This allows you to obtain the error message that was returned by the Web API.

APIError error = new APIError();
LicenseKey license = Key.Activate(auth, RSAPubKey, new ActivateModel(3349, "ICVLD-VVSZR-ZTICT-YKGXL", Helpers.GetMachineCode()), error);

if (license == null) {
    System.out.println("Error: " + error.message);
}

v1.15: Add Get Products and Record Usage (recurring billing)

08 Sep 16:30
Compare
Choose a tag to compare

This release is very close to the one for our .NET library. To get a better understanding of the methods that were added and how they can be used, please check https://help.cryptolens.io/api/dotnet/articles/v4020.html.

Here are several examples of how the new methods can be used in Java:

Get Products

GetProductsResult getProducts = ProductMethods.GetProducts(APIKey.get("productmethods"));

if(!Helpers.IsSuccessful(getProducts)) {
    fail("Could not obtain a list of data objects.");
}

Record Usage

BasicResult res = Subscription.RecordUsage(APIKey.get("subscriptionmethods"),
        new RecordUsageModel(3349, "CMXKC-GUQRW-EJUGS-RRPUR", 1));

if(!Helpers.IsSuccessful(res)) {
    fail("Could not register usage");
}

v1.14: Fix Helpers.HasFeature when using more than 8 features

06 May 13:18
Compare
Choose a tag to compare

v1.13: Improvements to data objects + Add Register Event (Analytics)

15 Mar 15:45
04b2b0e
Compare
Choose a tag to compare
  • Prevention of duplicates (i.e. data objects with the same name) to occur by setting CheckForDuplicates=true.
  • Data objects can be retrieved given with their name instead of the ID.
  • Register Event can be used to send in usage data

v1.12: Support for data objects associated with machine codes

13 Mar 16:45
Compare
Choose a tag to compare

v1.11: Add support for feature bundling

v1.10: Add support for more than 8 features using the notes field

05 Mar 11:49
Compare
Choose a tag to compare