Package org.pac4j.core.profile.creator
Class AuthenticatorProfileCreator
- java.lang.Object
-
- org.pac4j.core.profile.creator.AuthenticatorProfileCreator
-
- All Implemented Interfaces:
ProfileCreator
public class AuthenticatorProfileCreator extends java.lang.Object implements ProfileCreator
This profile creator retrieves the user profile attached in theCredentials
.- Since:
- 1.8.0
- Author:
- Jerome Leleu
-
-
Field Summary
Fields Modifier and Type Field Description static AuthenticatorProfileCreator
INSTANCE
-
Constructor Summary
Constructors Constructor Description AuthenticatorProfileCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<UserProfile>
create(Credentials credentials, WebContext context, SessionStore sessionStore)
Create a profile from a credentials.
-
-
-
Field Detail
-
INSTANCE
public static final AuthenticatorProfileCreator INSTANCE
-
-
Method Detail
-
create
public java.util.Optional<UserProfile> create(Credentials credentials, WebContext context, SessionStore sessionStore)
Description copied from interface:ProfileCreator
Create a profile from a credentials.- Specified by:
create
in interfaceProfileCreator
- Parameters:
credentials
- the given credentialscontext
- the web contextsessionStore
- the session store- Returns:
- the created profile (optional)
-
-