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 and Description |
|---|
AbstractHadoopAutoCreds() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doPrepare(Map<String,Object> topoConf)
Prepare the plugin.
|
protected abstract String |
getConfigKeyString()
The lookup key for the config key string.
|
Set<org.apache.commons.math3.util.Pair<String,org.apache.hadoop.security.Credentials>> |
getCredentials(Map<String,String> credentials) |
void |
populateCredentials(Map<String,String> credentials) |
void |
populateSubject(Subject subject,
Map<String,String> credentials) |
void |
prepare(Map<String,Object> topoConf) |
void |
updateSubject(Subject subject,
Map<String,String> credentials) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCredentialKeypublic void prepare(Map<String,Object> topoConf)
prepare in interface IAutoCredentialspublic 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 IAutoCredentialspublic Set<org.apache.commons.math3.util.Pair<String,org.apache.hadoop.security.Credentials>> getCredentials(Map<String,String> credentials)
protected abstract void doPrepare(Map<String,Object> topoConf)
Prepare the plugin.
topoConf - the topology confprotected abstract String getConfigKeyString()
The lookup key for the config key string.
Copyright © 2022 The Apache Software Foundation. All rights reserved.