Class AccessDeniedHandlerImpl

  • All Implemented Interfaces:
    org.springframework.security.web.access.AccessDeniedHandler

    @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
    public class AccessDeniedHandlerImpl
    extends Object
    implements org.springframework.security.web.access.AccessDeniedHandler
    Handles AccessDeniedException happened during request processing. Specifically, send 403 error code and the login page.
    Author:
    Kohsuke Kawaguchi
    • Constructor Detail

      • AccessDeniedHandlerImpl

        public AccessDeniedHandlerImpl()
    • Method Detail

      • handle

        public void handle​(javax.servlet.http.HttpServletRequest req,
                           javax.servlet.http.HttpServletResponse rsp,
                           org.springframework.security.access.AccessDeniedException cause)
                    throws IOException,
                           javax.servlet.ServletException
        Specified by:
        handle in interface org.springframework.security.web.access.AccessDeniedHandler
        Throws:
        IOException
        javax.servlet.ServletException