Package org.pac4j.core.profile.creator
Interface ProfileCreator
- All Known Implementing Classes:
AuthenticatorProfileCreator
,LocalCachingProfileCreator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This interface is responsible to create a
UserProfile
from a Credentials
.
Return Optional.empty()
if no profile can be found / created.- Since:
- 1.7.0
- Author:
- Jerome Leleu
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(Credentials credentials, WebContext context, SessionStore sessionStore) Create a profile from a credentials.
-
Method Details
-
create
Optional<UserProfile> create(Credentials credentials, WebContext context, SessionStore sessionStore) Create a profile from a credentials.- Parameters:
credentials
- the given credentialscontext
- the web contextsessionStore
- the session store- Returns:
- the created profile (optional)
-