You must first write a stand-alone Java class that will call your specific authentication process, library, or the interface that it requires. In many cases, this will require the Java Native Interface (JNI) to have access to C or C++ library or system call.
You will most likely save time if you get it working in a stand-alone environment before you integrate it into i-Planet.