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
(CallContext ctx, Credentials credentials) Create a profile from a credentials.
-
Method Details
-
create
Create a profile from a credentials.- Parameters:
ctx
- the contextcredentials
- the given credentials- Returns:
- the created profile (optional)
-