Interface DelegationTokenProvider


  • @Experimental
    public interface DelegationTokenProvider
    Delegation token provider API. Instances of DelegationTokenProviders are loaded by DelegationTokenManager through service loader. Basically the implementation of this interface is responsible to produce the serialized form of tokens which will be handled by DelegationTokenReceiver instances both on JobManager and TaskManager side.
    • Method Detail

      • serviceName

        String serviceName()
        Name of the service to provide delegation tokens. This name should be unique.
      • serviceConfigPrefix

        default String serviceConfigPrefix()
        Config prefix of the service.
      • init

        void init​(Configuration configuration)
           throws Exception
        Called by DelegationTokenManager to initialize provider after construction.
        Parameters:
        configuration - Configuration to initialize the provider.
        Throws:
        Exception
      • delegationTokensRequired

        boolean delegationTokensRequired()
                                  throws Exception
        Return whether delegation tokens are required for this service.
        Returns:
        true if delegation tokens are required.
        Throws:
        Exception