public class RemoteWasbDelegationTokenManager extends Object implements WasbDelegationTokenManager
| Modifier and Type | Field and Description |
|---|---|
static String |
DT_MANAGER_HTTP_CLIENT_RETRY_POLICY_ENABLED_KEY
Configuration key to enable http retry policy for delegation token service calls.
|
static String |
DT_MANAGER_HTTP_CLIENT_RETRY_POLICY_SPEC_KEY
Configuration key for delegation token service http retry policy spec.
|
static String |
KEY_DELEGATION_TOKEN_SERVICE_URLS
Configuration parameter name expected in the configuration
object to provide the url of the delegation token service to fetch the delegation tokens.
|
| Constructor and Description |
|---|
RemoteWasbDelegationTokenManager(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelDelegationToken(org.apache.hadoop.security.token.Token<?> token)
Cancel the delegation token
|
org.apache.hadoop.security.token.Token<org.apache.hadoop.security.token.delegation.web.DelegationTokenIdentifier> |
getDelegationToken(String renewer)
Get Delegation token
|
long |
renewDelegationToken(org.apache.hadoop.security.token.Token<?> token)
Renew the delegation token
|
public static final String KEY_DELEGATION_TOKEN_SERVICE_URLS
public static final String DT_MANAGER_HTTP_CLIENT_RETRY_POLICY_ENABLED_KEY
public static final String DT_MANAGER_HTTP_CLIENT_RETRY_POLICY_SPEC_KEY
public RemoteWasbDelegationTokenManager(org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionpublic org.apache.hadoop.security.token.Token<org.apache.hadoop.security.token.delegation.web.DelegationTokenIdentifier> getDelegationToken(String renewer) throws IOException
WasbDelegationTokenManagergetDelegationToken in interface WasbDelegationTokenManagerrenewer - delegation token renewerIOException - when error in getting the delegation tokenpublic long renewDelegationToken(org.apache.hadoop.security.token.Token<?> token)
throws IOException
WasbDelegationTokenManagerrenewDelegationToken in interface WasbDelegationTokenManagertoken - delegation token.IOException - when error in renewing the delegation tokenpublic void cancelDelegationToken(org.apache.hadoop.security.token.Token<?> token)
throws IOException
WasbDelegationTokenManagercancelDelegationToken in interface WasbDelegationTokenManagertoken - delegation token.IOException - when error in cancelling the delegation token.Copyright © 2008–2020 Apache Software Foundation. All rights reserved.