Previous Topic: Delegated Authentication Using the Legacy CookieNext Topic: Customize an Assertion with an Assertion Generator Plug-in


Java SDK Sample Application Deployment

Deployment of the Java SDK sample application requires installing Tomcat and CA SiteMinder® Federation Standalone at the relying party.

Follow these steps:

  1. Install the Java SDK package at any preferred location.
  2. Set the environment variable FEDSDKROOT to the installation Directory of Java SDK.

    Note: The value of FEDSDKROOT points to the location of the SDK directory. Example: C:\Program Files\CA\Federation Standalone\sdk.

    This environment variable is set automatically on Windows, but must be exported manually on UNIX platforms.

  3. Install Tomcat 5.0 and set the TOMCAT_HOME environment variable to point to the Tomcat root folder.

    Note: Tomcat must be installed on a different system from the one CA SiteMinder® Federation Standalone is installed on.

  4. Deploy FEDSDKROOT\sample\javasdk/war to the Web server by copying it to the TOMCAT_HOME\webapps\ folder.
  5. Start the Tomcat server.
  6. Try accessing the link “http://<FQDN of Tomcat Host>:<port num>/” to determine whether Tomcat is up and running.
  7. If you are using the legacy (FEDPROFILE) cookie, update fedsample.properties in the TOMCAT_HOME\webapps\javasdk\WEB-INF\classes folder as follows:
  8. If you are using the open format cookie, update fedsample.properties in the TOMCAT_HOME\webapps\javasdk\WEB-INF\classes folder as follows:
  9. The following parameters must be updated if you are testing light weight provisioning:
  10. Update the sdkloggingconfig.properties file to enable logging. Logging is disabled by default.
  11. Install CA SiteMinder® Federation Standalone at the relying party of a Federation partnership and define an asserting party-relying party partnership.
    1. Select appropriate Redirect mode.
    2. Specify the Target URL of the partnership. Enter one of the following:

The sample application is now deployed and ready to run.

Java SDK Sample Application Execution

After you have installed Tomcat and CA SiteMinder® Federation Standalone, you can run the Java SDK sample application.

To run the Java SDK sample application

  1. Start the Tomcat Server where the sample application is deployed:
  2. Run the configured federation transaction to redirect to the SDK Sample Application.

    The sample application decodes the cookie and displays the user identity information.

Java SDK Sample Application Customization

The sample application can be modified using build.bat or build.sh scripts to regenerate the fedsdksample.jar.

To customize the sample Java application

  1. Modify SpSideServlet or SpSideAttributeServlet.java as desired.
  2. Verify that the JDK is installed and JAVA_HOME is set appropriately for your JDK installation.
  3. Run build.bat (Windows) or build.sh (UNIX) to build the fedsdksample.jar file.

The customized version of the sample application is ready to run.