public class DefaultProfileStorageDecision<C extends WebContext> extends java.lang.Object implements ProfileStorageDecision<C>
| Constructor and Description |
|---|
DefaultProfileStorageDecision() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
mustLoadProfilesFromSession(C context,
java.util.List<Client> currentClients)
Load the profiles from the web session if no clients are defined or if the first client is an indirect one
or if the first client is the anonymous one.
|
boolean |
mustSaveProfileInSession(C context,
java.util.List<Client> currentClients,
DirectClient directClient,
CommonProfile profile)
Never save the profile in session after a direct client authentication.
|
public boolean mustLoadProfilesFromSession(C context, java.util.List<Client> currentClients)
mustLoadProfilesFromSession in interface ProfileStorageDecision<C extends WebContext>context - the web contextcurrentClients - the current clientspublic boolean mustSaveProfileInSession(C context, java.util.List<Client> currentClients, DirectClient directClient, CommonProfile profile)
mustSaveProfileInSession in interface ProfileStorageDecision<C extends WebContext>context - the web contextcurrentClients - the current clientsdirectClient - the direct clientsprofile - the retrieved profile after loginfalseCopyright © 2019. All Rights Reserved.