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.

@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 Details

    • create

      Optional<UserProfile> create(CallContext ctx, Credentials credentials)
      Create a profile from a credentials.
      Parameters:
      ctx - the context
      credentials - the given credentials
      Returns:
      the created profile (optional)