Plugins Licensing for Java - Metered License
The Aspose.Imaging licensing plugins enable developers to implement a metered key, introducing a new licensing mechanism. This plugin model restricts licensing to one plugin per application instance, transitioning the application to trial mode if entry points beyond the licensed plugin's scope are utilized. This approach ensures adherence to licensing terms while allowing users to explore additional functionalities through trial mode. Refer to the Metered Licensing FAQ for more details.
To acquire licenses, please visit the Aspose Purchase portal.
Metered Plugin Licensing
Below are the simple steps to make use of the Metered class:
- Initialize an instance of the
Metered
class. - Supply the public and private keys using the
setMeteredKey()
method. - Carry out the required processing tasks.
- Call the
getConsumptionQuantity()
method from the Metered class. - This method will furnish the quantity of API requests utilized up to that point.
com.aspose.imaging.Metered metered = new com.aspose.imaging.Metered();
//Specify public and private metered keys
metered.setMeteredKey(publicKey, privateKey);
//getConsumptionQuantity of the Metered class.
BigDecimal credit = com.aspose.imaging.Metered.getConsumptionCredit();
BigDecimal quanity = com.aspose.imaging.Metered.getConsumptionQuantity();
Please see additional examples for specific scenarios demonstrated with Plugin Licensing in Java: Use examples in Java.