Package it.fmuia.apps.jling

Examples of it.fmuia.apps.jling.LicenseManager


    Security.addProvider(new BouncyCastleProvider());
    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(
            "C:/Users/muia/workspace web/progetti/jling/jling/src/main/resources/META-INF/license.dat"));
  }
View Full Code Here


  @Test
  public void testReadLicense() throws Exception {
    Security.addProvider(new BouncyCastleProvider());
    PublicKey publicKey = SecurityUtil.loadPublicKey(JLing.class
        .getResourceAsStream("/META-INF/public-johndoe.pem"));
    LicenseManager l = new LicenseManager(publicKey,
        new LicenseProviderImpl());

    ILicense license = l.readLicense();
    System.out.println(license);
  }
View Full Code Here

TOP

Related Classes of it.fmuia.apps.jling.LicenseManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.