Class GeneratedBearerTokenAuthenticator

java.lang.Object
org.apache.arrow.flight.auth2.BearerTokenAuthenticator
org.apache.arrow.flight.auth2.GeneratedBearerTokenAuthenticator
All Implemented Interfaces:
CallHeaderAuthenticator

public class GeneratedBearerTokenAuthenticator extends BearerTokenAuthenticator
Generates and caches bearer tokens from user credentials.
  • Constructor Details

    • GeneratedBearerTokenAuthenticator

      public GeneratedBearerTokenAuthenticator(CallHeaderAuthenticator authenticator)
      Generate bearer tokens for the given basic call authenticator.
      Parameters:
      authenticator - The authenticator to initial validate inputs with.
    • GeneratedBearerTokenAuthenticator

      public GeneratedBearerTokenAuthenticator(CallHeaderAuthenticator authenticator, int timeoutMinutes)
      Generate bearer tokens for the given basic call authenticator.
      Parameters:
      authenticator - The authenticator to initial validate inputs with.
      timeoutMinutes - The time before tokens expire after being accessed.
    • GeneratedBearerTokenAuthenticator

      public GeneratedBearerTokenAuthenticator(CallHeaderAuthenticator authenticator, com.google.common.cache.CacheBuilder<Object,Object> cacheBuilder)
      Generate bearer tokens for the given basic call authenticator.
      Parameters:
      authenticator - The authenticator to initial validate inputs with.
      cacheBuilder - The configuration of the cache of bearer tokens.
  • Method Details