Class OAuth2TokenProvider.OAuth2TokenProviderBuilder<SELF extends org.apache.gravitino.client.OAuth2TokenProvider.Builder<SELF,T>,T extends OAuth2TokenProvider>

java.lang.Object
org.apache.gravitino.client.OAuth2TokenProvider.OAuth2TokenProviderBuilder<SELF,T>
Type Parameters:
SELF - The type of the builder.
T - The type of the OAuth2TokenProvider being built.
Direct Known Subclasses:
DefaultOAuth2TokenProvider.Builder
Enclosing class:
OAuth2TokenProvider

public abstract static class OAuth2TokenProvider.OAuth2TokenProviderBuilder<SELF extends org.apache.gravitino.client.OAuth2TokenProvider.Builder<SELF,T>,T extends OAuth2TokenProvider> extends Object
Builder interface for creating instances of OAuth2TokenProvider.
  • Field Details

    • client

      protected HTTPClient client
      The HTTP client used to request the access token from the authorization server.
  • Constructor Details

    • OAuth2TokenProviderBuilder

      public OAuth2TokenProviderBuilder()
  • Method Details

    • withUri

      public SELF withUri(String uri)
      Sets the uri of the OAuth2TokenProvider
      Parameters:
      uri - The uri of oauth server .
      Returns:
      The builder instance.
    • build

      public T build()
      Builds the instance of the OAuth2TokenProvider.
      Returns:
      The built OAuth2TokenProvider instance.
    • internalBuild

      protected abstract T internalBuild()
      Builds the instance of the OAuth2TokenProvider.
      Returns:
      The built OAuth2TokenProvider instance.