public class ZKDelegationTokenSecretManagerImpl
extends org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager<org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier>
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
ZK_DTSM_ROUTER_TOKEN_SYNC_INTERVAL |
|
static int |
ZK_DTSM_ROUTER_TOKEN_SYNC_INTERVAL_DEFAULT |
ZK_CONF_PREFIX, ZK_DTSM_TOKEN_SEQNUM_BATCH_SIZE, ZK_DTSM_TOKEN_SEQNUM_BATCH_SIZE_DEFAULT, ZK_DTSM_TOKEN_WATCHER_ENABLED, ZK_DTSM_TOKEN_WATCHER_ENABLED_DEFAULT, ZK_DTSM_TOKENS_ROOT, ZK_DTSM_ZK_AUTH_TYPE, ZK_DTSM_ZK_CONNECTION_STRING, ZK_DTSM_ZK_CONNECTION_TIMEOUT, ZK_DTSM_ZK_CONNECTION_TIMEOUT_DEFAULT, ZK_DTSM_ZK_KERBEROS_KEYTAB, ZK_DTSM_ZK_KERBEROS_PRINCIPAL, ZK_DTSM_ZK_KERBEROS_SERVER_PRINCIPAL, ZK_DTSM_ZK_NUM_RETRIES, ZK_DTSM_ZK_NUM_RETRIES_DEFAULT, ZK_DTSM_ZK_SESSION_TIMEOUT, ZK_DTSM_ZK_SESSION_TIMEOUT_DEFAULT, ZK_DTSM_ZK_SHUTDOWN_TIMEOUT, ZK_DTSM_ZK_SHUTDOWN_TIMEOUT_DEFAULT, ZK_DTSM_ZK_SSL_ENABLED, ZK_DTSM_ZK_SSL_KEYSTORE_LOCATION, ZK_DTSM_ZK_SSL_KEYSTORE_PASSWORD, ZK_DTSM_ZK_SSL_TRUSTSTORE_LOCATION, ZK_DTSM_ZK_SSL_TRUSTSTORE_PASSWORD, ZK_DTSM_ZNODE_WORKING_PATH, ZK_DTSM_ZNODE_WORKING_PATH_DEAFULT, zkClient| Constructor | Description |
|---|---|
ZKDelegationTokenSecretManagerImpl(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addOrUpdateToken(org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier ident,
org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation info,
boolean isUpdate) |
|
org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier |
cancelToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier> token,
java.lang.String canceller) |
|
org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier |
createIdentifier() |
|
protected void |
removeStoredToken(org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier ident) |
|
void |
startThreads() |
|
void |
stopThreads() |
getCurator, getCurrentKeyId, getDelegationKey, getDelegationTokenSeqNum, getTokenInfo, getTokenInfoFromZK, getTokenInfoFromZK, getTokenInfoFromZK, incrementCurrentKeyId, incrementDelegationTokenSeqNum, isTokenWatcherEnabled, processTokenAddOrUpdate, removeStoredMasterKey, removeStoredToken, setCurator, setDelegationTokenSeqNum, storeDelegationKey, storeToken, syncLocalCacheWithZk, updateDelegationKey, updateTokenaddKey, addPersistedDelegationToken, addTokenForOwnerStats, checkToken, createPassword, createSecretKey, decodeTokenIdentifier, getAllKeys, getCandidateTokensForCleanup, getCurrentTokensSize, getMetrics, getTokenRenewInterval, getTokenTrackingId, getTopTokenRealOwners, getTrackingIdIfEnabled, isRunning, logExpireToken, logExpireTokens, logUpdateMasterKey, removeExpiredStoredToken, renewToken, reset, retrievePassword, rollMasterKey, setCurrentKeyId, storeNewMasterKey, storeNewToken, syncTokenOwnerStats, updateStoredToken, verifyTokenpublic static final java.lang.String ZK_DTSM_ROUTER_TOKEN_SYNC_INTERVAL
public static final int ZK_DTSM_ROUTER_TOKEN_SYNC_INTERVAL_DEFAULT
public ZKDelegationTokenSecretManagerImpl(org.apache.hadoop.conf.Configuration conf)
public void startThreads()
throws java.io.IOException
startThreads in class org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager<org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier>java.io.IOExceptionpublic void stopThreads()
stopThreads in class org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager<org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier>public org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier createIdentifier()
createIdentifier in class org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier>public org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier cancelToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier> token,
java.lang.String canceller)
throws java.io.IOException
cancelToken in class org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager<org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier>java.io.IOExceptionprotected void removeStoredToken(org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier ident)
throws java.io.IOException
removeStoredToken in class org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager<org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier>java.io.IOExceptionprotected void addOrUpdateToken(org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier ident,
org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation info,
boolean isUpdate)
throws java.lang.Exception
addOrUpdateToken in class org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager<org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier>java.lang.ExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.