@InterfaceAudience.Private
@InterfaceStability.Unstable
public class TimelineDelegationTokenSecretManagerService
extends org.apache.hadoop.service.AbstractService
TimelineDelegationTokenSecretManagerService.TimelineDelegationTokenSecretManager| Modifier and Type | Class and Description |
|---|---|
static class |
TimelineDelegationTokenSecretManagerService.TimelineDelegationTokenSecretManager
Create a timeline secret manager
|
| Constructor and Description |
|---|
TimelineDelegationTokenSecretManagerService() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> token,
String canceler)
Cancels a delegation token.
|
org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> |
createToken(org.apache.hadoop.security.UserGroupInformation ugi,
String renewer)
Creates a delegation token.
|
long |
renewToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> token,
String renewer)
Renews a delegation token.
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
protected void |
serviceStop() |
org.apache.hadoop.security.UserGroupInformation |
verifyToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> token)
Verifies a delegation token.
|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStart, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic TimelineDelegationTokenSecretManagerService()
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceExceptionprotected void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceExceptionpublic org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> createToken(org.apache.hadoop.security.UserGroupInformation ugi,
String renewer)
throws IOException
ugi - UGI creating the token.renewer - token renewer.IOException - thrown if the token could not be created.public long renewToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> token,
String renewer)
throws IOException
token - delegation token to renew.renewer - token renewer.IOException - thrown if the token could not be renewed.public void cancelToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> token,
String canceler)
throws IOException
token - delegation token to cancel.canceler - token canceler.IOException - thrown if the token could not be canceled.public org.apache.hadoop.security.UserGroupInformation verifyToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> token)
throws IOException
token - delegation token to verify.IOException - thrown if the token could not be verified.Copyright © 2014 Apache Software Foundation. All Rights Reserved.