@Internal public interface DelegationTokenManager
When delegation token renewal is enabled, this manager will make sure long-running apps can run without interruption while accessing secured services. It must contact all the configured secure services to obtain delegation tokens to be distributed to the rest of the application.
Modifier and Type | Interface and Description |
---|---|
static interface |
DelegationTokenManager.Listener
Listener for events in the
DelegationTokenManager . |
Modifier and Type | Method and Description |
---|---|
void |
obtainDelegationTokens()
Obtains new tokens in a one-time fashion and automatically distributes them to all local JVM
receivers.
|
void |
obtainDelegationTokens(DelegationTokenContainer container)
Obtains new tokens in a one-time fashion and leaves it up to the caller to distribute them.
|
void |
start(DelegationTokenManager.Listener listener)
Creates a re-occurring task which obtains new tokens and automatically distributes them to
all receivers (in local JVM as well as in registered task managers too).
|
void |
stop()
Stops re-occurring token obtain task.
|
void obtainDelegationTokens(DelegationTokenContainer container) throws Exception
Exception
void obtainDelegationTokens() throws Exception
Exception
void start(DelegationTokenManager.Listener listener) throws Exception
Exception
void stop()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.