Module com.erudika.para.server
Package com.erudika.para.server.security
Class SimpleAccessDeniedHandler
java.lang.Object
org.springframework.security.web.access.AccessDeniedHandlerImpl
com.erudika.para.server.security.SimpleAccessDeniedHandler
- All Implemented Interfaces:
org.springframework.security.web.access.AccessDeniedHandler
public class SimpleAccessDeniedHandler
extends org.springframework.security.web.access.AccessDeniedHandlerImpl
Access denied handler.
- Author:
- Alex Bogdanovski [[email protected]]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.access.AccessDeniedException accessDeniedException) Methods inherited from class org.springframework.security.web.access.AccessDeniedHandlerImpl
setErrorPage
-
Constructor Details
-
SimpleAccessDeniedHandler
Default constructor.- Parameters:
errorPage
- error page path e.g. "/error.html"
-
-
Method Details
-
handle
public void handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.access.AccessDeniedException accessDeniedException) throws IOException, jakarta.servlet.ServletException - Specified by:
handle
in interfaceorg.springframework.security.web.access.AccessDeniedHandler
- Overrides:
handle
in classorg.springframework.security.web.access.AccessDeniedHandlerImpl
- Throws:
IOException
jakarta.servlet.ServletException
-