@Internal public abstract class AbstractS3DelegationTokenReceiver extends Object implements DelegationTokenReceiver
Modifier and Type | Field and Description |
---|---|
static String |
PROVIDER_CONFIG_NAME |
CONFIG_PREFIX
Constructor and Description |
---|
AbstractS3DelegationTokenReceiver() |
Modifier and Type | Method and Description |
---|---|
static com.amazonaws.services.securitytoken.model.Credentials |
getCredentials() |
void |
init(Configuration configuration)
Called to initialize receiver after construction.
|
void |
onNewTokensObtained(byte[] tokens)
Callback function when new delegation tokens obtained.
|
static void |
updateHadoopConfig(org.apache.hadoop.conf.Configuration hadoopConfig) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
serviceConfigPrefix, serviceName
public static final String PROVIDER_CONFIG_NAME
public static void updateHadoopConfig(org.apache.hadoop.conf.Configuration hadoopConfig)
public void init(Configuration configuration)
DelegationTokenReceiver
init
in interface DelegationTokenReceiver
configuration
- Configuration to initialize the receiver.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
@Nullable public static com.amazonaws.services.securitytoken.model.Credentials getCredentials()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.