public class DefaultProfileStorageDecision<C extends WebContext> extends Object implements ProfileStorageDecision<C>
Constructor and Description |
---|
DefaultProfileStorageDecision() |
Modifier and Type | Method and Description |
---|---|
boolean |
mustLoadProfilesFromSession(C context,
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,
List<Client> currentClients,
DirectClient directClient,
CommonProfile profile)
Never save the profile in session after a direct client authentication.
|
public boolean mustLoadProfilesFromSession(C context, List<Client> currentClients)
mustLoadProfilesFromSession
in interface ProfileStorageDecision<C extends WebContext>
context
- the web contextcurrentClients
- the current clientspublic boolean mustSaveProfileInSession(C context, 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 loginfalse
Copyright © 2019. All rights reserved.