Class CachedAuthenticatedSessionHandler
- java.lang.Object
-
- io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler
-
- All Implemented Interfaces:
HttpHandler
public class CachedAuthenticatedSessionHandler extends Object implements HttpHandler
HttpHandlerresponsible for setting up theAuthenticatedSessionManagerfor cached authentications and registering aNotificationReceiverto receive the security notifications. This handler also forces the session to change its session ID on sucessful authentication.- Author:
- Darran Lofthouse
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTRIBUTE_NAMEstatic StringNO_ID_CHANGE_REQUIRED
-
Constructor Summary
Constructors Constructor Description CachedAuthenticatedSessionHandler(HttpHandler next, ServletContextImpl servletContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(HttpServerExchange exchange)protected SessionunderlyingSession(HttpSessionImpl httpSession)
-
-
-
Constructor Detail
-
CachedAuthenticatedSessionHandler
public CachedAuthenticatedSessionHandler(HttpHandler next, ServletContextImpl servletContext)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws Exception
- Specified by:
handleRequestin interfaceHttpHandler- Throws:
Exception
-
underlyingSession
protected Session underlyingSession(HttpSessionImpl httpSession)
-
-