Java Sample Code

Dinkey Dongle

We provide full sample code in Java so that you can check for the presence of a dongle and apply many advanced protection techniques to your code.

We also provide sample code so you can change the dongle protection parameters remotely using your Java program rather than use our stand-alone program.

The Java code calls a native JNI module which we supply in the SDK. There are modules for Windows, Linux and Mac, both 32-bit and 64-bit. We provide a class that controls which module to load at runtime, so your implementation can be the same across all platforms.

Our samples are compatible with all versions and implementations of Java.

Read more about Dinkey Dongles.


Copyright © Microcosm Ltd.