Class AuthenticatedSessionManagerUtil
Object
com.liferay.portal.security.auth.session.AuthenticatedSessionManagerUtil
- Author:
- Tomas Polesovsky
-
Method Summary
Modifier and TypeMethodDescriptionstatic longgetAuthenticatedUserId(jakarta.servlet.http.HttpServletRequest httpServletRequest, String login, String password, String authType) static booleanisPasswordParameterInQueryString(jakarta.servlet.http.HttpServletRequest httpServletRequest) static voidlogin(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, String login, String password, boolean rememberMe, String authType) static voidlogout(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse) static jakarta.servlet.http.HttpSessionrenewSession(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpSession httpSession) static voidsignOutSimultaneousLogins(long userId)
-
Method Details
-
getAuthenticatedUserId
public static long getAuthenticatedUserId(jakarta.servlet.http.HttpServletRequest httpServletRequest, String login, String password, String authType) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
isPasswordParameterInQueryString
public static boolean isPasswordParameterInQueryString(jakarta.servlet.http.HttpServletRequest httpServletRequest) -
login
public static void login(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, String login, String password, boolean rememberMe, String authType) throws Exception - Throws:
Exception
-
logout
public static void logout(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse) throws Exception - Throws:
Exception
-
renewSession
public static jakarta.servlet.http.HttpSession renewSession(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpSession httpSession) throws Exception - Throws:
Exception
-
signOutSimultaneousLogins
- Throws:
Exception
-