@Internal public abstract class HadoopDelegationTokenReceiver extends Object implements DelegationTokenReceiver
CONFIG_PREFIX
Constructor and Description |
---|
HadoopDelegationTokenReceiver() |
Modifier and Type | Method and Description |
---|---|
void |
init(Configuration configuration)
Called to initialize receiver after construction.
|
void |
onNewTokensObtained(byte[] tokens)
Callback function when new delegation tokens obtained.
|
abstract String |
serviceName()
Name of the service to receive delegation tokens for.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
serviceConfigPrefix
public abstract String serviceName()
DelegationTokenReceiver
DelegationTokenProvider
.serviceName
in interface DelegationTokenReceiver
public void init(Configuration configuration) throws Exception
DelegationTokenReceiver
init
in interface DelegationTokenReceiver
configuration
- Configuration to initialize the receiver.Exception
public void onNewTokensObtained(byte[] tokens) throws Exception
DelegationTokenReceiver
onNewTokensObtained
in interface DelegationTokenReceiver
tokens
- Serialized form of delegation tokens. Must be deserialized the reverse way
which is implemented in DelegationTokenProvider
.Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.