Class AppAccessDeniedHandler
java.lang.Object
com.markvarga21.studentmanager.exception.handler.security.AppAccessDeniedHandler
- All Implemented Interfaces:
org.springframework.security.web.access.AccessDeniedHandler
@Component
public class AppAccessDeniedHandler
extends Object
implements org.springframework.security.web.access.AccessDeniedHandler
A handler for access denied exceptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.access.AccessDeniedException accessDeniedException) This method is used to handle access denied exceptions.
-
Constructor Details
-
AppAccessDeniedHandler
public AppAccessDeniedHandler()
-
-
Method Details
-
handle
public void handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.access.AccessDeniedException accessDeniedException) throws IOException This method is used to handle access denied exceptions.- Specified by:
handle
in interfaceorg.springframework.security.web.access.AccessDeniedHandler
- Parameters:
request
- The HTTP request.response
- The HTTP response.accessDeniedException
- The access denied exception.- Throws:
IOException
- If an input or output exception occurs.
-