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 a UserProfile from a Credentials. Return Optional.empty() if no profile can be found / created.
    Since:
    1.7.0
    Author:
    Jerome Leleu
    • Method Detail

      • create

        java.util.Optional<UserProfile> create​(Credentials credentials,
                                               WebContext context,
                                               SessionStore sessionStore)
        Create a profile from a credentials.
        Parameters:
        credentials - the given credentials
        context - the web context
        sessionStore - the session store
        Returns:
        the created profile (optional)