Class STAccessDeniedHandler

java.lang.Object
it.uniroma2.art.semanticturkey.security.STAccessDeniedHandler
All Implemented Interfaces:
org.springframework.security.web.access.AccessDeniedHandler

public class STAccessDeniedHandler extends Object implements org.springframework.security.web.access.AccessDeniedHandler
Author:
Tiziano Specifies what happen when an authenticated user perform a request for which has not the required role Simply returns a 403 response (forbidden) with a json content (Referenced in WEB-INF/spring-security.xml)
  • 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • STAccessDeniedHandler

      public STAccessDeniedHandler()
  • 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 interface org.springframework.security.web.access.AccessDeniedHandler
      Throws:
      IOException
      jakarta.servlet.ServletException