Interface AccessDeniedHandler
- All Known Implementing Classes:
 AccessDeniedHandlerImpl,BearerTokenAccessDeniedHandler,CompositeAccessDeniedHandler,DelegatingAccessDeniedHandler,InvalidSessionAccessDeniedHandler,NoOpAccessDeniedHandler,ObservationMarkingAccessDeniedHandler,RequestMatcherDelegatingAccessDeniedHandler
public interface AccessDeniedHandler
Used by 
ExceptionTranslationFilter to handle an
 AccessDeniedException.- 
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AccessDeniedException accessDeniedException) Handles an access denied failure. 
- 
Method Details
- 
handle
void handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AccessDeniedException accessDeniedException) throws IOException, jakarta.servlet.ServletException Handles an access denied failure.- Parameters:
 request- that resulted in anAccessDeniedExceptionresponse- so that the user agent can be advised of the failureaccessDeniedException- that caused the invocation- Throws:
 IOException- in the event of an IOExceptionjakarta.servlet.ServletException- in the event of a ServletException
 
 -