Bitcoin/Litecoin License Manager plug-in

Before using the plugin, you need to generate license.ser files. Learn how to here.

The BLLM plug-in is the code you will integrate into your software, likely making it available as a menu item under “Help/License”.

The workflow for obtaining a license looks like this:

Download BLLM from Github

Github link here.

Note that the license file has to be handled separately. Generate a license file with the Bitcoin/Litecoin License Manager License Key Generator and include the license in your programs installation directory or another directory of your choosing. Users will need read write access to the directory containg the license.ser file. The license file license.ser should NOT be packaged in your applications jar file.

Integrate BLLM into your application

Provide a menu item that will launch BLLM:

In the ActionListener of your menu item, launch the main window for BLLM

MenuForMyApplication.java
1
2
3
4
5
6
7
8
9
10

menuItem = new JMenuItem("License", KeyEvent.VK_L);
menuItem.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent e) {
new bllm.DialogLicenseManager( "My Apps Title", "/path/to/license.ser", "privatekeyforencryption");
}
});
menu.add(menuItem);

If you are working with Gradle, you can install BLLM in your local repository and make BLLM a dependency. First add to the local repository:

1
2
>mvn install:install-file -Dfile=build/libs/bllm-0.1.jar -DgroupId=net.stihie -DartifactId=bllm -Dversion=0.1 -Dpackaging=jar

Check your ./.m2 directory and be sure it is there. Then in your gradle.build file:

gradle.build
1
2
3
4
5
6
7
8
9
repositories {
//....
mavenLocal()
}

dependencies {
//.......
compile 'net.stihie:bllm:0.1'
}

Javadocs available here.

Share