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 void
login(String clientName, de.xima.fc.api.rest.pub.client.user_portal.model.TokenResponse tokenResponse)
Logs in a user with the given token response.void
logout()
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:IUserPortalUserManager
Gets the currently authenticated user, if any.- Specified by:
user
in 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:IUserPortalUserManager
Logs in a user with the given token response.- Specified by:
login
in 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:IUserPortalUserManager
Logs out the currently authenticated user.- Specified by:
logout
in interfaceIUserPortalUserManager
-
-