Interface IServiceCreator<SERVICE extends AbstractOAuthService>

  • 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 IServiceCreator<SERVICE extends AbstractOAuthService>
    Interface used to create the actual instance of the authentication service.
    Author:
    Christopher Mindus
    • Method Detail

      • create

        SERVICE create​(OAuthSession session)
        Creates the service with the parameters.
        Parameters:
        session - The OAuthSession instance.
        Returns:
        The new service instance.
        Throws:
        java.lang.NullPointerException - If the session is null.
        java.lang.IllegalStateException - If the authentication engine is not initialized.