Class InvalidSessionAccessDeniedHandler
- java.lang.Object
-
- org.springframework.security.web.session.InvalidSessionAccessDeniedHandler
-
- All Implemented Interfaces:
AccessDeniedHandler
public final class InvalidSessionAccessDeniedHandler extends java.lang.Object implements AccessDeniedHandler
An adapter ofInvalidSessionStrategy
toAccessDeniedHandler
- Since:
- 3.2
-
-
Constructor Summary
Constructors Constructor Description InvalidSessionAccessDeniedHandler(InvalidSessionStrategy invalidSessionStrategy)
Creates a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AccessDeniedException accessDeniedException)
Handles an access denied failure.
-
-
-
Constructor Detail
-
InvalidSessionAccessDeniedHandler
public InvalidSessionAccessDeniedHandler(InvalidSessionStrategy invalidSessionStrategy)
Creates a new instance- Parameters:
invalidSessionStrategy
- theInvalidSessionStrategy
to delegate to
-
-
Method Detail
-
handle
public void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AccessDeniedException accessDeniedException) throws java.io.IOException, javax.servlet.ServletException
Description copied from interface:AccessDeniedHandler
Handles an access denied failure.- Specified by:
handle
in interfaceAccessDeniedHandler
- Parameters:
request
- that resulted in anAccessDeniedException
response
- so that the user agent can be advised of the failureaccessDeniedException
- that caused the invocation- Throws:
java.io.IOException
- in the event of an IOExceptionjavax.servlet.ServletException
- in the event of a ServletException
-
-