I have created a java class file, created the c header file using jni, and compiled the c source file as a iseries service program ... everything works fine.
My question is security. I call the service program from java by doing a System.loadLibrary("SVCPGM") and then calling the methods exposed. How can I do the following?
1. secure the communications between the java class and the service program?
2. how can I secure the service program so that it couldn't be replaced with an intruder program?
Please note that I'm asking for programatic methods of doing this if there are any.