Package org.pac4j.core.engine.decision
Interface ProfileStorageDecision<C extends WebContext>
-
- All Known Implementing Classes:
AlwaysUseSessionProfileStorageDecision
,DefaultProfileStorageDecision
public interface ProfileStorageDecision<C extends WebContext>
Defines the decisions related to load/save the profile(s) from/into the session store.- Since:
- 3.0.0
- Author:
- Jerome Leleu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
mustLoadProfilesFromSession(C context, List<Client> currentClients)
Whether we must load the profiles from the web session.boolean
mustSaveProfileInSession(C context, List<Client> currentClients, DirectClient directClient, UserProfile profile)
Whether we must save the profile in session after the authentication of direct clients.
-
-
-
Method Detail
-
mustLoadProfilesFromSession
boolean mustLoadProfilesFromSession(C context, List<Client> currentClients)
Whether we must load the profiles from the web session.- Parameters:
context
- the web contextcurrentClients
- the current clients- Returns:
- whether the profiles must be loaded from the web session
-
mustSaveProfileInSession
boolean mustSaveProfileInSession(C context, List<Client> currentClients, DirectClient directClient, UserProfile profile)
Whether we must save the profile in session after the authentication of direct clients.- Parameters:
context
- the web contextcurrentClients
- the current clientsdirectClient
- the direct clientsprofile
- the retrieved profile after login- Returns:
- whether we must save the profile in session
-
-