Releases: Cryptolens/cryptolens-java
Releases · Cryptolens/cryptolens-java
v1.17.3: Update dependencies causing errors in the previous built
v1.17.2: Update the OSHI library
Update modelVersion=3 in Activate
v1.17: Update to ModelVersion=3 in Activate
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
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)
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
See #17 for more details.
v1.13: Improvements to data objects + Add Register Event (Analytics)
- 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
Update Helpers.java
v1.11: Add support for feature bundling
v1.10: Add support for more than 8 features using the notes field
Update Helpers.java