@Experimental
public interface DelegationTokenProvider
DelegationTokenManager through service loader.| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
delegationTokensRequired()
Return whether delegation tokens are required for this service.
|
void |
init(org.apache.flink.configuration.Configuration configuration)
Called by
DelegationTokenManager to initialize provider after construction. |
Optional<Long> |
obtainDelegationTokens(org.apache.hadoop.security.Credentials credentials)
Obtain delegation tokens for this service.
|
String |
serviceName()
Name of the service to provide delegation tokens.
|
String serviceName()
void init(org.apache.flink.configuration.Configuration configuration) throws Exception
DelegationTokenManager to initialize provider after construction.configuration - Configuration to initialize the provider.Exceptionboolean delegationTokensRequired()
throws Exception
ExceptionOptional<Long> obtainDelegationTokens(org.apache.hadoop.security.Credentials credentials) throws Exception
credentials - Credentials to add tokens and security keys to.ExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.