Skip to content

JavaLicense offers server-based licensing for Java apps, eliminating traditional keys. Secure, efficient, and key-free licensing solution.

License

Notifications You must be signed in to change notification settings

poyrazinan/JavaLicense

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaLicense

JavaLicense is a license validation and management solution for your Java projects. It enables you to check, validate, and manage licenses within your Java applications.

Usage

public static void main(String... args) {
    try {
        // License object creation
        License license = new License("test", "https://demo.geik.xyz/api/plugin/check.php?plugin={product}&ip={ip}");
        // License check
        boolean status = license.run();
        // Checks if server has license or not
        if (status) {
            // Code block for license found situation
            System.out.println("License found!");
        }
        else
            // Code block for license couldn't be found situation
            System.out.println("License couldn't be found");

        // Exceptions
        } catch (LocalMachineIpCatchException e) {
            // When program couldn't find the host address, throws this exception
            System.out.println("Local machine ip couldn't be find.");
        } catch (ConnectionFailureException e) {
            // When connection fails, throws this exception
            System.out.println("Connection failed to remote server.");
        } catch (ResponseCodeException e) {
            // When response not equal to 500, throws this exception
            System.out.println("Response code is not correct, check api server!");
        }
}

API

Java CI with Maven JavaLicense JavaDoc

Javadoc

Click

Maven:

<repositories>
  <repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>com.github.poyrazinan</groupId>
    <artifactId>JavaLicense</artifactId>
    <version>1.2</version>
    <scope>compile</scope>
  </dependency>
</dependencies>

Gradle:

repositories {
  maven { url 'https://jitpack.io' }
}

dependencies {
  implementation 'com.github.poyrazinan:JavaLicense:1.2'
}

Local Dependency

You can find jar on releases.

Requirements:

  • Web API for storing licenses and check. Suggest you my api
  • User must have CURL for license check. Don't need anymore :)

Contributions

  • If you'd like to provide feedback or contribute to the project, please open an issue on the GitHub repository or submit a pull request.

Dependencies

Useful links:

License

This project is licensed under the MIT License. For more information, please see the LICENSE file.