Package org.apache.storm.common
Class AbstractHadoopAutoCreds
java.lang.Object
org.apache.storm.common.AbstractHadoopAutoCreds
- All Implemented Interfaces:
- CredentialKeyProvider,- IAutoCredentials
public abstract class AbstractHadoopAutoCreds
extends Object
implements IAutoCredentials, CredentialKeyProvider
The base class that for auto credential plugins that abstracts out some of the common functionality.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract voidPrepare the plugin.protected abstract StringThe lookup key for the config key string.getCredentials(Map<String, String> credentials) voidpopulateCredentials(Map<String, String> credentials) Called to populate the credentials on the client side.voidpopulateSubject(Subject subject, Map<String, String> credentials) Called to initially populate the subject on the worker side with credentials passed in.voidvoidupdateSubject(Subject subject, Map<String, String> credentials) Called to update the subject on the worker side when new credentials are recieved.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.storm.common.CredentialKeyProvidergetCredentialKey
- 
Constructor Details- 
AbstractHadoopAutoCredspublic AbstractHadoopAutoCreds()
 
- 
- 
Method Details- 
prepare- Specified by:
- preparein interface- IAutoCredentials
 
- 
populateCredentialsDescription copied from interface:IAutoCredentialsCalled to populate the credentials on the client side.- Specified by:
- populateCredentialsin interface- IAutoCredentials
- Parameters:
- credentials- the credentials to be populated.
 
- 
populateSubjectCalled to initially populate the subject on the worker side with credentials passed in.- Specified by:
- populateSubjectin interface- IAutoCredentials
- Parameters:
- subject- the subject to optionally put credentials in.
- credentials- the credentials to be used.
 
- 
updateSubjectCalled to update the subject on the worker side when new credentials are recieved. This means that populateSubject has already been called on this subject.- Specified by:
- updateSubjectin interface- IAutoCredentials
- Parameters:
- subject- the subject to optionally put credentials in.
- credentials- the credentials to be used.
 
- 
getCredentials
- 
doPreparePrepare the plugin.- Parameters:
- topoConf- the topology conf
 
- 
getConfigKeyStringThe lookup key for the config key string.- Returns:
- the config key string
 
 
-