@InterfaceAudience.Private
@InterfaceStability.Unstable
public static class TimelineV2DelegationTokenSecretManagerService.TimelineV2DelegationTokenSecretManager
extends org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier>
Constructor and Description |
---|
TimelineV2DelegationTokenSecretManagerService.TimelineV2DelegationTokenSecretManager(long delegationKeyUpdateInterval,
long delegationTokenMaxLifetime,
long delegationTokenRenewInterval,
long delegationTokenRemoverScanInterval)
Create a timeline v2 secret manager.
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier |
createIdentifier() |
org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> |
generateToken(org.apache.hadoop.security.UserGroupInformation ugi,
String renewer) |
protected void |
logExpireToken(org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier ident) |
addKey, addPersistedDelegationToken, cancelToken, checkToken, createPassword, createSecretKey, decodeTokenIdentifier, getAllKeys, getCurrentKeyId, getDelegationKey, getDelegationTokenSeqNum, getTokenInfo, getTokenTrackingId, getTrackingIdIfEnabled, incrementCurrentKeyId, incrementDelegationTokenSeqNum, isRunning, logUpdateMasterKey, removeStoredMasterKey, removeStoredToken, renewToken, reset, retrievePassword, setCurrentKeyId, setDelegationTokenSeqNum, startThreads, stopThreads, storeDelegationKey, storeNewMasterKey, storeNewToken, storeToken, updateDelegationKey, updateStoredToken, updateToken, verifyToken
public TimelineV2DelegationTokenSecretManagerService.TimelineV2DelegationTokenSecretManager(long delegationKeyUpdateInterval, long delegationTokenMaxLifetime, long delegationTokenRenewInterval, long delegationTokenRemoverScanInterval)
delegationKeyUpdateInterval
- the number of milliseconds for rolling
new secret keys.delegationTokenMaxLifetime
- the maximum lifetime of the delegation
tokens in millisecondsdelegationTokenRenewInterval
- how often the tokens must be renewed
in millisecondsdelegationTokenRemoverScanInterval
- how often the tokens are
scanned for expired tokens in millisecondspublic org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> generateToken(org.apache.hadoop.security.UserGroupInformation ugi, String renewer)
public org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier createIdentifier()
createIdentifier
in class org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier>
protected void logExpireToken(org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier ident) throws IOException
logExpireToken
in class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier>
IOException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.