Package org.apache.hadoop.security.alias
Class CredentialShell
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.tools.CommandShell
org.apache.hadoop.security.alias.CredentialShell
- All Implemented Interfaces:
Configurable,Tool
This program is the CLI utility for the CredentialProvider facilities in
Hadoop.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTo facilitate testing since Console is a final class.Nested classes/interfaces inherited from class org.apache.hadoop.tools.CommandShell
CommandShell.SubCommand -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn usage string for the command including any summary of subcommands.protected intParse the command line arguments and initialize the data.static voidMain program.protected char[]voidMethods inherited from class org.apache.hadoop.tools.CommandShell
getErr, getOut, printException, printShellUsage, run, setErr, setOut, setSubCommandMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
NO_VALID_PROVIDERS
- See Also:
-
-
Constructor Details
-
CredentialShell
public CredentialShell()
-
-
Method Details
-
init
Parse the command line arguments and initialize the data.% hadoop credential create alias [-provider providerPath] % hadoop credential list [-provider providerPath] % hadoop credential check alias [-provider providerPath] % hadoop credential delete alias [-provider providerPath] [-f]
- Specified by:
initin classCommandShell- Parameters:
args- args.- Returns:
- 0 if the argument(s) were recognized, 1 otherwise
- Throws:
IOException- raised on errors performing I/O.
-
getCommandUsage
Description copied from class:CommandShellReturn usage string for the command including any summary of subcommands.- Specified by:
getCommandUsagein classCommandShell- Returns:
- command usage.
-
promptForCredential
- Throws:
IOException
-
getPasswordReader
-
setPasswordReader
-
main
Main program.- Parameters:
args- Command line arguments- Throws:
Exception- exception.
-