@InterfaceAudience.Private public class DelegationTokenManagerService extends BaseService implements DelegationTokenManager
Constructor and Description |
---|
DelegationTokenManagerService() |
Modifier and Type | Method and Description |
---|---|
void |
cancelToken(Token<DelegationTokenIdentifier> token,
String canceler)
Cancels a delegation token.
|
Token<DelegationTokenIdentifier> |
createToken(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(Token<DelegationTokenIdentifier> token,
String renewer)
Renews a delegation token.
|
UserGroupInformation |
verifyToken(Token<DelegationTokenIdentifier> token)
Verifies a delegation token.
|
getPrefix, getPrefixedName, getServer, getServiceConfig, getServiceDependencies, init, postInit, serverStatusChange
protected void init() throws ServiceException
init
in class BaseService
ServiceException
- thrown if the service could not be initialized.public void destroy()
destroy
in interface Service
destroy
in class BaseService
public Class getInterface()
getInterface
in interface Service
public Token<DelegationTokenIdentifier> createToken(UserGroupInformation ugi, String renewer) throws DelegationTokenManagerException
createToken
in interface DelegationTokenManager
ugi
- UGI creating the token.renewer
- token renewer.DelegationTokenManagerException
- thrown if the token could not be
created.public long renewToken(Token<DelegationTokenIdentifier> token, String renewer) throws DelegationTokenManagerException
renewToken
in interface DelegationTokenManager
token
- delegation token to renew.renewer
- token renewer.DelegationTokenManagerException
- thrown if the token could not be
renewed.public void cancelToken(Token<DelegationTokenIdentifier> token, String canceler) throws DelegationTokenManagerException
cancelToken
in interface DelegationTokenManager
token
- delegation token to cancel.canceler
- token canceler.DelegationTokenManagerException
- thrown if the token could not be
canceled.public UserGroupInformation verifyToken(Token<DelegationTokenIdentifier> token) throws DelegationTokenManagerException
verifyToken
in interface DelegationTokenManager
token
- delegation token to verify.DelegationTokenManagerException
- thrown if the token could not be
verified.Copyright © 2013 Apache Software Foundation. All rights reserved.