Example usage for com.liferay.portal.kernel.security.auth.session AuthenticatedSessionManagerUtil login

List of usage examples for com.liferay.portal.kernel.security.auth.session AuthenticatedSessionManagerUtil login

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.security.auth.session AuthenticatedSessionManagerUtil login.

Prototype

public static void login(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse,
            String login, String password, boolean rememberMe, String authType) throws Exception 

Source Link

Usage

From source file:com.liferay.login.web.internal.portlet.util.LoginUtil.java

License:Open Source License

/**
 * @deprecated As of 1.1.0, replaced by {@link
 *             AuthenticatedSessionManagerUtil#login(HttpServletRequest,
 *             HttpServletResponse, String, String, boolean, String)}
 *///from  w ww . j  a va 2  s.  co m
@Deprecated
public static void login(HttpServletRequest request, HttpServletResponse response, String login,
        String password, boolean rememberMe, String authType) throws Exception {

    AuthenticatedSessionManagerUtil.login(request, response, login, password, rememberMe, authType);
}

From source file:com.slemarchand.quick.sign.up.web.portlet.QuickSignUpPortlet.java

License:Open Source License

protected void login(ThemeDisplay themeDisplay, ActionRequest actionRequest, ActionResponse actionResponse,
        User user, String password, String redirect) throws Exception {

    HttpServletRequest request = PortalUtil
            .getOriginalServletRequest(PortalUtil.getHttpServletRequest(actionRequest));
    HttpServletResponse response = PortalUtil.getHttpServletResponse(actionResponse);

    String login = getLogin(themeDisplay, actionRequest, user);

    boolean rememberMe = false;

    String authType = themeDisplay.getCompany().getAuthType();

    AuthenticatedSessionManagerUtil.login(request, response, login, password, rememberMe, authType);

    actionResponse.sendRedirect(redirect);
}