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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface org.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.