Previous Topic: Agent API Class Hierarchy

Next Topic: Implement the Pure Java Agent API

Implement the JNI Java Agent API

Applications that are built using the JNI Java AgentAPI either directly or indirectly (through another agent) are insulated from underlying implementation details, including:

Additional benefits provided by the Java Agent API include full session management support, automatic encryption key rollover, and real-time policy updates.

To implement the JNI Java Agent API

  1. Review the required software as listed in the accompanying release notes.
  2. Review the sample code.
  3. Write source code for your client application.
  4. Ensure that your system can find the JNI support library when the Java Virtual Machine (JVM) is invoked, as follows:

    <install_path>\sdk\bin

    <install_path>/sdk/bin

    <install_path>/sdk/bin

    <install_path>/sdk/bin

    Note: Java agents on Linux require Java SDK v 1.3.1.

    <install_path>/sdk/bin

    Note: The Java Agent API is not available for HP10.

  5. Ensure that SiteMinder can find the JNI Java AgentAPI JAR file when you compile or run an agent that uses the Java Agent API. The JAR file, smjavaagentapi.jar, is stored in the following locations:

    <install_path>\sdk\java

    <install_path>/sdk/java

    Add smjavaagentapi.jar to your CLASSPATH setting. When compiling, you can use the -classpath switch.

  6. Compile the Java Agent API application using javac.

    For an example, see java-build.bat or java-build.sh in the sample directory smjavaagentapi.

  7. Configure the Policy Server to use the Java Agent API application.
  8. Run the application.

    For an example, see java-run.bat or java-run.sh in the sample directory smjavaagentapi.