April 20, 2016

Aletheia

aletheia_logoAletheia is a free (open source) license library for creating and validating license files for Java applications. It is based on a set of application specific properties they are characteristic for the customer and purchased application’s configuration.

Aletheia is an opensourced software and free of charge.
You can use Aletheia freely for any commercial and non-commercial projects.

https://github.com/pawlidim/aletheia

How To Use

Add aletheia jar file to your application classpath. The following example shows the basic usage of this library.

Create new license and save it as “mylicense.lic” file.

// create simple lincense object
License license = new License();
license.setProduct("Aletheia");
license.setProductVersion("1.0.0");
license.setUuid(UUID.randomUUID().toString());
license.setCompany("PAWLIDI.DE");
license.setCreated(DateTime.now());
license.setDueDate(DateTime.now().plusMonths(2));
license.setDescription("License file for PAWLIDI.DE");

// create aletheia object
Aletheia aletheia = new Aletheia();

// save license as lic file
aletheia.saveLicense("mylicense.lic", license);

// dispose reserved fields
aletheia.dispose();

The lic file contains following informations.

#
#Mon Aug 01 01:23:36 CEST 2016
signature=Skk7BDXldcv5kafyJEHX3Y+LdqRLTTiA8SHmm6oaL5Mzrm+kldrPnJLhy4thUni2Hsa7KaB/PYhxOULGMPSeC+rxtuWe61gpbL3Scwk2ji2LSOvWUk/V1p7ZEOKBA6dj4cirZxgmtP0/cSixYzbQ6iuy1AY8IFYqTlEYRcn61WaZaKiTaiCIgXO7Oa8UeHhhXjbZXZYpPRxCU/bqMfEz6PqWQn55/taoZIVcF4fIwQJY5WMdQ9Lv6AyQmdPNJpkZkZ+HVpTKxESxXxOZZQ7DgHSWvAdGkJzONGxPVSu0K/l5h/Rx9eyYpwOJdRi5ifYQ2a/+KasSULQohZoN4l9rjw\=\=
company=PAWLIDI.DE
version=1.0.0
description=License file for PAWLIDI.DE
due_date=10/01/2016
product=Aletheia
created=08/01/2016

Load exist license file

// create aletheia object
Aletheia aletheia = new Aletheia("mylicense.lic");

// verify license
aletheia.verifyLicense();

// dispose reserved fields
aletheia.dispose();

Download

Last release

Source Code

Check out the latest source code from repository.

git clone git://github.com/pawlidim/aletheia.git

Dependencies


 commons-lang
 commons-lang
 2.6



 commons-validator
 commons-validator
 1.5.1



 commons-io
 commons-io
 2.5



 commons-codec
 commons-codec
 1.10



 org.apache.commons
 commons-exec
 1.3



 junit
 junit
 4.12



 joda-time
 joda-time
 2.9.4



 org.jasypt
 jasypt
 1.9.2



 commons-net
 commons-net
 3.5

 

License

Aletheia is released under Apache License 2.0.

2 thoughts on “Aletheia

Leave a Reply to Manoli Cancel reply

Your email address will not be published. Required fields are marked *

*