@Experimental public interface DelegationTokenProvider
DelegationTokenProvider
s 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.Modifier and Type | Interface and Description |
---|---|
static class |
DelegationTokenProvider.ObtainedDelegationTokens
Container for obtained delegation tokens.
|
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_PREFIX
Config prefix of providers.
|
Modifier and Type | Method and Description |
---|---|
boolean |
delegationTokensRequired()
Return whether delegation tokens are required for this service.
|
void |
init(Configuration configuration)
Called by DelegationTokenManager to initialize provider after construction.
|
DelegationTokenProvider.ObtainedDelegationTokens |
obtainDelegationTokens()
Obtain delegation tokens for this service.
|
default String |
serviceConfigPrefix()
Config prefix of the service.
|
String |
serviceName()
Name of the service to provide delegation tokens.
|
static final String CONFIG_PREFIX
String serviceName()
default String serviceConfigPrefix()
void init(Configuration configuration) throws Exception
configuration
- Configuration to initialize the provider.Exception
boolean delegationTokensRequired() throws Exception
Exception
DelegationTokenProvider.ObtainedDelegationTokens obtainDelegationTokens() throws Exception
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.