Package org.pac4j.core.profile.creator
Class AuthenticatorProfileCreator<C extends Credentials>
- java.lang.Object
-
- org.pac4j.core.profile.creator.AuthenticatorProfileCreator<C>
-
- All Implemented Interfaces:
ProfileCreator<C>
public class AuthenticatorProfileCreator<C extends Credentials> extends Object implements ProfileCreator<C>
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 Optional<UserProfile>
create(C credentials, WebContext context)
Create a profile from a credentials.
-
-
-
Field Detail
-
INSTANCE
public static final AuthenticatorProfileCreator INSTANCE
-
-
Method Detail
-
create
public Optional<UserProfile> create(C credentials, WebContext context)
Description copied from interface:ProfileCreator
Create a profile from a credentials.- Specified by:
create
in interfaceProfileCreator<C extends Credentials>
- Parameters:
credentials
- the given credentialscontext
- the web context- Returns:
- the created profile (optional)
-
-