Class CoreAuthProviderClient<RequestClientT>

  • Type Parameters:
    RequestClientT - the type of the request client that this client will use.
    Direct Known Subclasses:
    CoreUserApiKeyAuthProviderClient, CoreUserPasswordAuthProviderClient

    public abstract class CoreAuthProviderClient<RequestClientT>
    extends Object
    The class from which all Core auth provider clients inherit. Only auth provider clients that make requests to the Stitch server need to inherit this class.
    • Constructor Detail

      • CoreAuthProviderClient

        protected CoreAuthProviderClient​(String providerName,
                                         RequestClientT requestClient,
                                         String baseRoute)
        A basic constructor, which sets the provider client's properties to the values provided in the parameters.
        Parameters:
        providerName - the name of the provider.
        requestClient - the request client to perform requests against Stitch.
        baseRoute - the base route requests made from this client should use.
    • Method Detail

      • getProviderName

        protected String getProviderName()
        Returns the name of the authentication provider.
        Returns:
        the name of the authentication provider.
      • getRequestClient

        protected RequestClientT getRequestClient()
        Returns the request client used by the client to make requests. It is generic since some auth provider clients use an authenticated request client while others use an unauthenticated request client.
        Returns:
        the request client used by the client to make requests.
      • getBaseRoute

        protected String getBaseRoute()
        Returns the base route for this authentication provider client.
        Returns:
        the base route for this authentication provider client.