Class LoadLinkedUserAuthorizationGenerator
java.lang.Object
org.pac4j.core.authorization.generator.LoadLinkedUserAuthorizationGenerator
- All Implemented Interfaces:
AuthorizationGenerator
Load a linked account and replace the original account.
- Since:
- 2.0.0
- Author:
- Jerome Leleu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate(WebContext context, SessionStore sessionStore, UserProfile profile) Generate the authorization information from and for the user profile.booleanvoidsetFailIfLinkedUserNotFound(boolean failIfLinkedUserNotFound) voidsetProfileService(ProfileService profileService) toString()
-
Constructor Details
-
LoadLinkedUserAuthorizationGenerator
public LoadLinkedUserAuthorizationGenerator() -
LoadLinkedUserAuthorizationGenerator
-
-
Method Details
-
generate
public Optional<UserProfile> generate(WebContext context, SessionStore sessionStore, UserProfile profile) Description copied from interface:AuthorizationGeneratorGenerate the authorization information from and for the user profile.- Specified by:
generatein interfaceAuthorizationGenerator- Parameters:
context- the web contextsessionStore- the session storeprofile- the user profile for which to generate the authorization information.- Returns:
- the updated profile or a new one (optional)
-
getProfileService
-
setProfileService
-
isFailIfLinkedUserNotFound
public boolean isFailIfLinkedUserNotFound() -
setFailIfLinkedUserNotFound
public void setFailIfLinkedUserNotFound(boolean failIfLinkedUserNotFound) -
toString
-