Class PrintAttributeServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.jboss.as.test.integration.security.common.servlets.PrintAttributeServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

@WebServlet("/PrintAttrServlet") public class PrintAttributeServlet extends jakarta.servlet.http.HttpServlet
This servlet prints value of an request/session attribute. It supports also nested values for Map and List instances - names in such case are delimited by "/".

The servlet supports 2 parameters:

For instance the Picketlink's handler SAML2AttributeHandler stores a map with attributes received in SAML assertion to an HttpSession as attribute named "SESSION_ATTRIBUTE_MAP". Each entry in this map is represented by a list of values. So if you want to read the first value of SAML assertion attribute named "cn" from the session, use the parameter "attrib=SESSION_ATTRIBUTE_MAP/cn/0"

Author:
Josef Cacek
See Also: