Package org.pac4j.core.profile.creator
Interface ProfileCreator
-
- All Known Implementing Classes:
AuthenticatorProfileCreator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ProfileCreator
This interface is responsible to create aUserProfile
from aCredentials
. ReturnOptional.empty()
if no profile can be found / created.- Since:
- 1.7.0
- Author:
- Jerome Leleu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<UserProfile>
create(Credentials credentials, WebContext context, SessionStore sessionStore)
Create a profile from a credentials.
-
-
-
Method Detail
-
create
java.util.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)
-
-