Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package io.undertow.servlet.handlers.security;
 
 
Servlet version of the single sign on authentication mechanism.

Author(s):
Stuart Douglas
        super(storage);
    }
    @Override
    protected Session getSession(HttpServerExchange exchange) {
        ServletRequestContext servletRequestContext = exchange.getAttachment(.);
        final HttpSessionImpl session = servletRequestContext.getCurrentServletContext().getSession(exchangetrue);
        if(System.getSecurityManager() == null) {
            return session.getSession();
        } else {
            return AccessController.doPrivileged(new HttpSessionImpl.UnwrapSessionAction(session));
        }
    }
New to GrepCode? Check out our FAQ X