Class SimpleSecuredServlet

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

@DeclareRoles("JBossAdmin") @ServletSecurity(@HttpConstraint(rolesAllowed="JBossAdmin")) @WebServlet("/SimpleSecuredServlet") public class SimpleSecuredServlet extends SimpleServlet
Protected version of SimpleServlet. Only "JBossAdmin" role has access right.
Author:
Josef Cacek
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     

    Fields inherited from class org.jboss.as.test.integration.security.common.servlets.SimpleServlet

    CREATE_SESSION_PARAM, RESPONSE_BODY

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class org.jboss.as.test.integration.security.common.servlets.SimpleServlet

    doGet

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, service, service

    Methods inherited from class jakarta.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait