Package com.adito.core

Examples of com.adito.core.ServletRequestAdapter


                    } else if (logonStatus == LogonController.LOGGED_ON) {

                        User currentUser = LogonControllerFactory.getInstance().getUser(request);

                        // Set the logon ticket / domain logon ticket again
                        LogonControllerFactory.getInstance().addCookies(new ServletRequestAdapter(request),
                            new ServletResponseAdapter(response),
                            (String) request.getSession().getAttribute(Constants.LOGON_TICKET), getSessionInfo(request));

                        if (!LogonControllerFactory.getInstance().isAdministrator(getSessionInfo(request).getUser())
                                        && requiresAdministrator) {
View Full Code Here


                        msgs.add(Globals.ERROR_KEY, new ActionMessage("login.invalidTicket"));
                        saveErrors(request, msgs);
                    } else if (logonStatus == LogonController.LOGGED_ON) {
                        SessionInfo session = LogonControllerFactory.getInstance().getSessionInfo(request);
                        // Set the logon ticket / domain logon ticket again
                        LogonControllerFactory.getInstance().addCookies(new ServletRequestAdapter(request),
                            new ServletResponseAdapter(response),
                            (String) request.getSession().getAttribute(Constants.LOGON_TICKET), getSessionInfo(request));

                        ActionForward fwd = checkIntercept(mapping, request, response);
                        if (fwd != null) {
View Full Code Here

    public static void authenticate(AuthenticationScheme scheme, HttpServletRequest request) throws Exception {
        AuthenticationModule module = scheme.currentAuthenticationModule();
        if (module == null) {
            throw new Exception("No current authentication module");
        }
        RequestParameterMap params = new RequestParameterMap(new ServletRequestAdapter(request));
        User currentUser = scheme.getUser();
        LogonStateAndCache logonStateMachine = (LogonStateAndCache) request.getSession().getAttribute(
                        LogonStateAndCache.LOGON_STATE_MACHINE);

        if (logonStateMachine == null) {
View Full Code Here

      if (logonCookie == null) {

        SessionInfo session = getSessionInfo(sessionLogonTicket);
        if (session == null)
          return NOT_LOGGED_ON;
        addCookies(new ServletRequestAdapter(request), new ServletResponseAdapter(response), sessionLogonTicket, session);
      }
      // Still check that the cookie is what we expect it to be
      if (logonCookie != null && !sessionLogonTicket.equals(logonCookie)) {
        log.warn("Expected a different logon ticket.");
        return NOT_LOGGED_ON;
View Full Code Here

    }
  }

  public void addSession(String logonTicket, SessionInfo info, HttpServletRequest request, HttpServletResponse response) {
    logons.put(logonTicket, info);
    addCookies(new ServletRequestAdapter(request), new ServletResponseAdapter(response), logonTicket, info);
  }
View Full Code Here

        if (launchId != null) {
            LaunchSession launchSession = LaunchSessionFactory.getInstance().getLaunchSession(launchId);
            if (launchSession != null) {
                sessionInfo = launchSession.getSession();
                LogonControllerFactory.getInstance().addCookies(new ServletRequestAdapter((HttpServletRequest) request),
                    new ServletResponseAdapter((HttpServletResponse) response), launchSession.getSession().getLogonTicket(),
                    launchSession.getSession());
                sessionInfo.access();
            } else if (log.isDebugEnabled())
                log.debug("Could not locate session using ticket");
View Full Code Here

TOP

Related Classes of com.adito.core.ServletRequestAdapter

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.