@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.
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
DelegationTokenManager.Listener
Listener for events in the
DelegationTokenManager. |
| 限定符和类型 | 方法和说明 |
|---|---|
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
Exceptionvoid obtainDelegationTokens()
throws Exception
Exceptionvoid start(DelegationTokenManager.Listener listener) throws Exception
Exceptionvoid stop()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.