Sun Java System Access Manager Policy Agent 2.2 Guide for IBM WebSphere Application Server 6.0

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 = 
AmFilterManager.getAmSSOCache().getSSOTokenForUser(EJBContext);


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 AMAgent.properties file is set to true as shown:

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