Class HadoopFSDelegationTokenProvider

java.lang.Object
org.apache.flink.runtime.security.token.hadoop.HadoopFSDelegationTokenProvider
All Implemented Interfaces:
org.apache.flink.core.security.token.DelegationTokenProvider

@Internal public class HadoopFSDelegationTokenProvider extends Object implements org.apache.flink.core.security.token.DelegationTokenProvider
Delegation token provider for Hadoop filesystems.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.flink.core.security.token.DelegationTokenProvider

    org.apache.flink.core.security.token.DelegationTokenProvider.ObtainedDelegationTokens
  • Field Summary

    Fields inherited from interface org.apache.flink.core.security.token.DelegationTokenProvider

    CONFIG_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
    init(org.apache.flink.configuration.Configuration configuration)
     
    org.apache.flink.core.security.token.DelegationTokenProvider.ObtainedDelegationTokens
     
    protected void
    obtainDelegationTokens(String renewer, Set<org.apache.hadoop.fs.FileSystem> fileSystemsToAccess, org.apache.hadoop.security.Credentials credentials)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.flink.core.security.token.DelegationTokenProvider

    serviceConfigPrefix
  • Constructor Details

    • HadoopFSDelegationTokenProvider

      public HadoopFSDelegationTokenProvider()
  • Method Details

    • serviceName

      public String serviceName()
      Specified by:
      serviceName in interface org.apache.flink.core.security.token.DelegationTokenProvider
    • init

      public void init(org.apache.flink.configuration.Configuration configuration) throws Exception
      Specified by:
      init in interface org.apache.flink.core.security.token.DelegationTokenProvider
      Throws:
      Exception
    • delegationTokensRequired

      public boolean delegationTokensRequired() throws Exception
      Specified by:
      delegationTokensRequired in interface org.apache.flink.core.security.token.DelegationTokenProvider
      Throws:
      Exception
    • obtainDelegationTokens

      public org.apache.flink.core.security.token.DelegationTokenProvider.ObtainedDelegationTokens obtainDelegationTokens() throws Exception
      Specified by:
      obtainDelegationTokens in interface org.apache.flink.core.security.token.DelegationTokenProvider
      Throws:
      Exception
    • obtainDelegationTokens

      protected void obtainDelegationTokens(@Nullable String renewer, Set<org.apache.hadoop.fs.FileSystem> fileSystemsToAccess, org.apache.hadoop.security.Credentials credentials)