Package jrun.servlet

Examples of jrun.servlet.WebApplication


                    user = appSecurity.authenticate(username, password, request.getSession(true));
                }
                else
                {
                    ServletContext servletContext = FlexContext.getServletConfig().getServletContext();
                    WebApplication webApp = ((jrun.servlet.JRunServletContext)servletContext).getWebApplication();
                    HttpSession tempSession = webApp.getSessionService().createSession("temp");
                    user = appSecurity.authenticate(username, password, tempSession);
                    tempSession.invalidate();
                }
                return user.getPrincipal();
            }
View Full Code Here


        {
            // Destroy the Principal maintained by the app server.
            try
            {
                ServletContext servletContext = FlexContext.getServletConfig().getServletContext();
                WebApplication webApp = ((jrun.servlet.JRunServletContext)servletContext).getWebApplication();
                HttpServletRequest request = FlexContext.getHttpRequest();
       
                HttpSession session = request.getSession();
                String sessionId = session.getId();
                AuthenticatedUser currentUser = usersService.getUser(sessionId, webApp);
View Full Code Here

                    user = appSecurity.authenticate(username, password, request.getSession(true));
                }
                else
                {
                  ServletContext servletContext = FlexContext.getServletConfig().getServletContext();
                    WebApplication webApp = ((jrun.servlet.JRunServletContext)servletContext).getWebApplication();
                    HttpSession tempSession = webApp.getSessionService().createSession("temp");
                    user = appSecurity.authenticate(username, password, tempSession);
                    tempSession.invalidate();
                }
                return user.getPrincipal();
            }
View Full Code Here

    public boolean logout(Principal principal) throws SecurityException
    {
        try
        {
            ServletContext servletContext = FlexContext.getServletConfig().getServletContext();
            WebApplication webApp = ((jrun.servlet.JRunServletContext)servletContext).getWebApplication();
            HttpServletRequest request = FlexContext.getHttpRequest();

            HttpSession session = request.getSession();
            String sessionId = session.getId();
            AuthenticatedUser currentUser = usersService.getUser(sessionId, webApp);
View Full Code Here

TOP

Related Classes of jrun.servlet.WebApplication

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.