Class UserPortalUserManager
java.lang.Object
de.xima.fc.user_portal.integration.security.user.UserPortalUserManager
- All Implemented Interfaces:
IUserPortalUserManager, Serializable
@Named
@RequestScoped
public class UserPortalUserManager
extends Object
implements IUserPortalUserManager
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUserPortalUserManager(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) -
Method Summary
Modifier and TypeMethodDescriptionbuildFormPath(String formPath) Sets the form access cookie for the given form path.getSessionData(String key) Gets the session data for the given key.voidlogin(String clientName, AuthenticationTokenResponse tokenResponse, boolean isMfaAuthenticated) Logs in a user with the given token response.voidlogout()Logs out the currently authenticated user.voidsetSessionData(String key, Serializable value) Sets the session data for the given key.user()Gets the currently authenticated user, if any.
-
Constructor Details
-
UserPortalUserManager
@Inject public UserPortalUserManager(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
-
Method Details
-
user
Description copied from interface:IUserPortalUserManagerGets the currently authenticated user, if any.- Specified by:
userin interfaceIUserPortalUserManager- Returns:
- The currently authenticated user, if any.
-
setSessionData
Description copied from interface:IUserPortalUserManagerSets the session data for the given key.- Specified by:
setSessionDatain interfaceIUserPortalUserManager- Parameters:
key- The key to set the session data for.value- The value to set the session data to.
-
getSessionData
Description copied from interface:IUserPortalUserManagerGets the session data for the given key.- Specified by:
getSessionDatain interfaceIUserPortalUserManager- Parameters:
key- The key to get the session data for.- Returns:
- The session data for the given key.
-
buildFormPath
Description copied from interface:IUserPortalUserManagerSets the form access cookie for the given form path.- Specified by:
buildFormPathin interfaceIUserPortalUserManager- Parameters:
formPath- The path of the form to set the access cookie for.
-
login
public void login(String clientName, AuthenticationTokenResponse tokenResponse, boolean isMfaAuthenticated) Description copied from interface:IUserPortalUserManagerLogs in a user with the given token response.- Specified by:
loginin interfaceIUserPortalUserManager- Parameters:
clientName- The name of the pac4j client that was used for logging in.tokenResponse- The token response to use for logging in.isMfaAuthenticated- Whether the user has been authenticated via multi-factor authentication (MFA).
-
logout
public void logout()Description copied from interface:IUserPortalUserManagerLogs out the currently authenticated user.- Specified by:
logoutin interfaceIUserPortalUserManager
-