Class CustomTokenProvider

java.lang.Object
org.apache.gravitino.client.CustomTokenProvider
All Implemented Interfaces:
Closeable, AutoCloseable

public abstract class CustomTokenProvider extends Object
CustomTokenProvider will provide a custom access token for every request.
  • Field Details

    • schemeName

      protected String schemeName
      The name of authentication scheme.
  • Constructor Details

    • CustomTokenProvider

      public CustomTokenProvider()
  • Method Details

    • hasTokenData

      public boolean hasTokenData()
    • getTokenData

      public byte[] getTokenData()
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • getCustomTokenInfo

      protected abstract String getCustomTokenInfo()
      Gets the custom token information.
      Returns:
      The custom token information.