Sun Java System Access Manager Policy Agent 2.2 Guide for Apache Tomcat 5.5 Servlet/JSP Container

Usage of New J2EE Agent API in Policy Agent 2.2

The following example demonstrates the new J2EE agent API in use.

Example 5–4 Usage of New J2EE Agent API

String ssotoken = 

Caution – Caution –

This public API can only retrieve the SSOToken object in EJB context if the value of the following property in the J2EE agent file is set to true as shown:

com.sun.identity.agents.config.user.principal = true