Class NoOpAccessDeniedHandler
java.lang.Object
org.springframework.security.web.access.NoOpAccessDeniedHandler
- All Implemented Interfaces:
AccessDeniedHandler
An
AccessDeniedHandler implementation that does nothing.- Since:
- 6.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AccessDeniedException accessDeniedException) Handles an access denied failure.
-
Constructor Details
-
NoOpAccessDeniedHandler
public NoOpAccessDeniedHandler()
-
-
Method Details
-
handle
public void handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AccessDeniedException accessDeniedException) throws IOException, jakarta.servlet.ServletException Description copied from interface:AccessDeniedHandlerHandles an access denied failure.- Specified by:
handlein interfaceAccessDeniedHandler- Parameters:
request- that resulted in anAccessDeniedExceptionresponse- so that the user agent can be advised of the failureaccessDeniedException- that caused the invocation- Throws:
IOException- in the event of an IOExceptionjakarta.servlet.ServletException- in the event of a ServletException
-