Programming Guides › Programming Guide for Java › Agent API › Implement the Pure Java Agent API
Implement the Pure Java Agent API
Applications that are built using the pure Java Agent API either directly or indirectly (through another agent) are insulated from underlying implementation details, including:
- User namespaces, such as LDAP directories, SQL databases, or NT domains
- Authentication methods as simple as username/password or as complex as PKI systems
- Authorizations based on group membership or individual profile data
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 pure Java Agent API
- Review the required software as listed in the accompanying release notes.
- Review the sample code.
- Write source code for your client application.
- Ensure that SiteMinder can find the pure Java Agent API .jar file when you compile or run an agent that uses the Java Agent API. The JAR file, smagentapi.jar, is stored in the following locations:
<install_path>\sdk\java
<install_path>/sdk/java
Add smagentapi.jar to your CLASSPATH setting. When compiling, you can use the -classpath switch.
- Compile the Java Agent API application using javac.
For an example, see java-build.bat or java-build.sh in the sample directory smjavaagentapi.
- Configure the Policy Server to use the Java Agent API application.
- Run the application.