Class CachedAuthenticatedSessionHandler
- java.lang.Object
-
- io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler
-
- All Implemented Interfaces:
io.undertow.server.HttpHandler
public class CachedAuthenticatedSessionHandler extends java.lang.Object implements io.undertow.server.HttpHandlerHttpHandlerresponsible 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 java.lang.StringATTRIBUTE_NAMEstatic java.lang.StringNO_ID_CHANGE_REQUIRED
-
Constructor Summary
Constructors Constructor Description CachedAuthenticatedSessionHandler(io.undertow.server.HttpHandler next, ServletContextImpl servletContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(io.undertow.server.HttpServerExchange exchange)protected io.undertow.server.session.SessionunderlyingSession(HttpSessionImpl httpSession)
-
-
-
Constructor Detail
-
CachedAuthenticatedSessionHandler
public CachedAuthenticatedSessionHandler(io.undertow.server.HttpHandler next, ServletContextImpl servletContext)
-
-
Method Detail
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws java.lang.Exception- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Throws:
java.lang.Exception
-
underlyingSession
protected io.undertow.server.session.Session underlyingSession(HttpSessionImpl httpSession)
-
-