public abstract class AbstractAutoCreds extends Object implements IAutoCredentials, ICredentialsRenewer, INimbusCredentialPlugin
The base class that for auto credential plugins that abstracts out some of the common functionality.
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_KEY_RESOURCES |
| Constructor and Description |
|---|
AbstractAutoCreds() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doPrepare(Map conf)
Prepare the plugin
|
protected abstract void |
doRenew(Map<String,String> credentials,
Map<String,Object> topologyConf,
String ownerPrincipal) |
protected void |
fillHadoopConfiguration(Map topoConf,
String configKey,
org.apache.hadoop.conf.Configuration configuration) |
protected abstract String |
getConfigKeyString()
The lookup key for the config key string
|
protected abstract String |
getCredentialKey(String configKey)
The key with which the credentials are stored in the credentials map
|
protected Set<org.apache.commons.math3.util.Pair<String,org.apache.hadoop.security.Credentials>> |
getCredentials(Map<String,String> credentials) |
protected abstract byte[] |
getHadoopCredentials(Map<String,Object> conf,
String topologyOwnerPrincipal) |
protected abstract byte[] |
getHadoopCredentials(Map<String,Object> conf,
String configKey,
String topologyOwnerPrincipal) |
void |
populateCredentials(Map<String,String> credentials) |
void |
populateCredentials(Map<String,String> credentials,
Map<String,Object> topoConf,
String topologyOwnerPrincipal) |
void |
populateSubject(Subject subject,
Map<String,String> credentials) |
void |
prepare(Map conf) |
void |
renew(Map<String,String> credentials,
Map<String,Object> topologyConf,
String ownerPrincipal) |
void |
updateSubject(Subject subject,
Map<String,String> credentials) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrenewpopulateCredentialsshutdownpublic static final String CONFIG_KEY_RESOURCES
public void prepare(Map conf)
prepare in interface IAutoCredentialsprepare in interface ICredentialsRenewerprepare in interface INimbusCredentialPluginpublic void populateCredentials(Map<String,String> credentials, Map<String,Object> topoConf, String topologyOwnerPrincipal)
populateCredentials in interface INimbusCredentialPluginpublic void renew(Map<String,String> credentials, Map<String,Object> topologyConf, String ownerPrincipal)
renew in interface ICredentialsRenewerpublic void populateCredentials(Map<String,String> credentials)
populateCredentials in interface IAutoCredentialspublic void populateSubject(Subject subject, Map<String,String> credentials)
populateSubject in interface IAutoCredentialspublic void updateSubject(Subject subject, Map<String,String> credentials)
updateSubject in interface IAutoCredentialsprotected Set<org.apache.commons.math3.util.Pair<String,org.apache.hadoop.security.Credentials>> getCredentials(Map<String,String> credentials)
protected void fillHadoopConfiguration(Map topoConf, String configKey, org.apache.hadoop.conf.Configuration configuration)
protected abstract void doPrepare(Map conf)
Prepare the plugin
conf - the storm cluster conf set via storm.yamlprotected abstract String getConfigKeyString()
The lookup key for the config key string
protected abstract String getCredentialKey(String configKey)
The key with which the credentials are stored in the credentials map
protected abstract byte[] getHadoopCredentials(Map<String,Object> conf, String configKey, String topologyOwnerPrincipal)
protected abstract byte[] getHadoopCredentials(Map<String,Object> conf, String topologyOwnerPrincipal)
Copyright © 2018 The Apache Software Foundation. All Rights Reserved.