|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.lib.server.BaseService org.apache.hadoop.lib.service.security.DelegationTokenManagerService
@InterfaceAudience.Private public class DelegationTokenManagerService
DelegationTokenManager service implementation.
Constructor Summary | |
---|---|
DelegationTokenManagerService()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.hadoop.lib.server.BaseService |
---|
getPrefix, getPrefixedName, getServer, getServiceConfig, getServiceDependencies, init, postInit, serverStatusChange |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegationTokenManagerService()
Method Detail |
---|
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 org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> createToken(org.apache.hadoop.security.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(org.apache.hadoop.security.token.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(org.apache.hadoop.security.token.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 org.apache.hadoop.security.UserGroupInformation verifyToken(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token) throws DelegationTokenManagerException
verifyToken
in interface DelegationTokenManager
token
- delegation token to verify.
DelegationTokenManagerException
- thrown if the token could not be
verified.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |