SDKs
Android SDK

License & License Data Objects

1min
the license file contains all information about the license license data class contains elements which are returned from licensespring servers, it's signature is checked against the public key of licensespring servers public class license { private final licensedata data; private final licenseidentity identity; private final installationfile installationfile; private final product product; 	private final string hardwareid; private zoneddatetime lastcheck; private zoneddatetime lastusage; private int localconsumptions; private transient licenserepository repository; private transient licenseservice service; private boolean remoteexpired; private boolean active; private boolean enabled; public static license createfromcheck(license license, checkresponse checkresponse); public int getmaxactivations(); public int getmaxconsumptions(); public int gettotalconsumptions(); public int gettimesactivated(); public void increaseconsumption(); 	public void increaseconsumption(int increment); public void syncconsumptions(context context); public void increasefeatureconsumption(string feature, context context); public void increasefeatureconsumption(string feature, int increment, context context); public boolean isexpired(); public long daysremaining(); public long dayspassedsincelastcheck(); public void localcheck(context context); public product getproduct(); } the license object can be used to check the validity of the license, add consumptions for consumption type of license the license object is stored on disk encrypted