@InterfaceAudience.Private public class DelegationTokenManagerService extends BaseService implements DelegationTokenManager
| Constructor and Description |
|---|
DelegationTokenManagerService() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelToken(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token,
String canceler)
Cancels a delegation token.
|
org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> |
createToken(org.apache.hadoop.security.UserGroupInformation ugi,
String renewer)
Creates a delegation token.
|
void |
destroy()
Destroys the service.
|
Class |
getInterface()
Returns the service interface.
|
protected void |
init()
Initializes the service.
|
long |
renewToken(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token,
String renewer)
Renews a delegation token.
|
org.apache.hadoop.security.UserGroupInformation |
verifyToken(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token)
Verifies a delegation token.
|
getPrefix, getPrefixedName, getServer, getServiceConfig, getServiceDependencies, init, postInit, serverStatusChangeprotected void init()
throws ServiceException
init in class BaseServiceServiceException - thrown if the service could not be initialized.public void destroy()
destroy in interface Servicedestroy in class BaseServicepublic Class getInterface()
getInterface in interface Servicepublic org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> createToken(org.apache.hadoop.security.UserGroupInformation ugi, String renewer) throws DelegationTokenManagerException
createToken in interface DelegationTokenManagerugi - UGI creating the token.renewer - token renewer.DelegationTokenManagerException - thrown if the token could not be
created.public long renewToken(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token, String renewer) throws DelegationTokenManagerException
renewToken in interface DelegationTokenManagertoken - delegation token to renew.renewer - token renewer.DelegationTokenManagerException - thrown if the token could not be
renewed.public void cancelToken(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token, String canceler) throws DelegationTokenManagerException
cancelToken in interface DelegationTokenManagertoken - delegation token to cancel.canceler - token canceler.DelegationTokenManagerException - thrown if the token could not be
canceled.public org.apache.hadoop.security.UserGroupInformation verifyToken(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token) throws DelegationTokenManagerException
verifyToken in interface DelegationTokenManagertoken - delegation token to verify.DelegationTokenManagerException - thrown if the token could not be
verified.Copyright © 2014 Apache Software Foundation. All Rights Reserved.