PublicKey publicKey = SecurityUtil.loadPublicKey(JLing.class
.getResourceAsStream("/META-INF/public-johndoe.pem"));
PrivateKey privateKey = SecurityUtil.loadPrivateKey(JLing.class
.getResourceAsStream("/META-INF/priv-johndoe.pem"));
LicenseManager l = new LicenseManager(publicKey, privateKey,
new LicenseProviderImpl());
License license = new License("123141", "asfasfaf", "afasfa",
"afasgags", LicenseType.FULL, null, null);
l.writeLicense(
license,
new File(