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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.access.AccessDeniedException accessDeniedException)
-
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 interfaceorg.springframework.security.web.access.AccessDeniedHandler
- Throws:
IOException
jakarta.servlet.ServletException
-