Previous Topic: Obtain Authentication Responses and Other Data from the SiteMinder Principal

Next Topic: Session Handling

Obtain Authorization Responses for Web Requests from HTTP Request Attributes

Authorization responses are set in the com.ca.siteminder.asa.SmAzResponses HTTP request attribute in the form of the HashMap described in Common HashMap Response Structure.

The following code snippet shows how to obtain the response HashMap from the request object.

public void service(HttpServletRequest request, HttpServletResponse response)
       throws ServletException, IOException

{
	…
	Object attribute = request.getAttribute (“com.ca.siteminder.asa.SmAzResponses”);
	if (attribute != null)
	{
		// do some processing

	}
….
}