Interface OAuth20UserProfileDataCreator

  • 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 OAuth20UserProfileDataCreator
    Strategy interface that acts as factory to handle creation of un-typed user profile data which then could be transformed into whatever representation necessary by upstream components.
    Since:
    5.3.0
    • Method Detail

      • createFrom

        java.util.Map<java.lang.String,​java.lang.Object> createFrom​(OAuth20AccessToken accessToken,
                                                                          org.pac4j.core.context.JEEContext context)
        Create internal user profile data.
        Parameters:
        accessToken - oauth access token
        context - request context
        Returns:
        Map representing profile data