|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.security.alias.CredentialProvider
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract class CredentialProvider
A provider of credentials or password for Hadoop applications. Provides an abstraction to separate credential storage from users of them. It is intended to support getting or storing passwords in a variety of ways, including third party bindings.
| Field Summary | |
|---|---|
static String |
CLEAR_TEXT_FALLBACK
|
| Constructor Summary | |
|---|---|
CredentialProvider()
|
|
| Method Summary | |
|---|---|
abstract org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry |
createCredentialEntry(String name,
char[] credential)
Create a new credential. |
abstract void |
deleteCredentialEntry(String name)
Delete the given credential. |
abstract void |
flush()
Ensures that any changes to the credentials are written to persistent store. |
abstract List<String> |
getAliases()
Get the aliases for all credentials. |
abstract org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry |
getCredentialEntry(String alias)
Get the credential entry for a specific alias. |
boolean |
isTransient()
Indicates whether this provider represents a store that is intended for transient use - such as the UserProvider is. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CLEAR_TEXT_FALLBACK
| Constructor Detail |
|---|
public CredentialProvider()
| Method Detail |
|---|
public boolean isTransient()
public abstract void flush()
throws IOException
IOException
public abstract org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry getCredentialEntry(String alias)
throws IOException
alias - the name of a specific credential
IOException
public abstract List<String> getAliases()
throws IOException
IOException
public abstract org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry createCredentialEntry(String name,
char[] credential)
throws IOException
name - the alias of the credentialcredential - the credential value for the alias.
IOException
public abstract void deleteCredentialEntry(String name)
throws IOException
name - the alias of the credential to delete
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||