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:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description UserPortalUserManager(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlogin(String clientName, de.xima.fc.api.rest.pub.client.user_portal.model.TokenResponse tokenResponse)Logs in a user with the given token response.voidlogout()Logs out the currently authenticated user.Optional<IUserPortalUser>user()Gets the currently authenticated user, if any. 
 - 
 
- 
- 
Method Detail
- 
user
public Optional<IUserPortalUser> user()
Description copied from interface:IUserPortalUserManagerGets the currently authenticated user, if any.- Specified by:
 userin interfaceIUserPortalUserManager- Returns:
 - The currently authenticated user, if any.
 
 
- 
login
public void login(String clientName, de.xima.fc.api.rest.pub.client.user_portal.model.TokenResponse tokenResponse)
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.
 
- 
logout
public void logout()
Description copied from interface:IUserPortalUserManagerLogs out the currently authenticated user.- Specified by:
 logoutin interfaceIUserPortalUserManager
 
 - 
 
 -