Class AccessDeniedHandlerImpl

java.lang.Object
hudson.security.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 Details

    • AccessDeniedHandlerImpl

      public AccessDeniedHandlerImpl()
  • Method Details

    • handle

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