public class CredentialShell extends CommandShell
Modifier and Type | Class and Description |
---|---|
static class |
CredentialShell.PasswordReader
To facilitate testing since Console is a final class.
|
CommandShell.SubCommand
Modifier and Type | Field and Description |
---|---|
static String |
NO_VALID_PROVIDERS |
Constructor and Description |
---|
CredentialShell() |
Modifier and Type | Method and Description |
---|---|
String |
getCommandUsage()
Return usage string for the command including any summary of subcommands.
|
CredentialShell.PasswordReader |
getPasswordReader() |
protected int |
init(String[] args)
Parse the command line arguments and initialize the data.
|
static void |
main(String[] args)
Main program.
|
protected char[] |
promptForCredential() |
void |
setPasswordReader(CredentialShell.PasswordReader reader) |
getErr, getOut, printException, printShellUsage, run, setErr, setOut, setSubCommand
getConf, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf, setConf
public static final String NO_VALID_PROVIDERS
protected int init(String[] args) throws IOException
% hadoop credential create alias [-provider providerPath] % hadoop credential list [-provider providerPath] % hadoop credential delete alias [-provider providerPath] [-f]
init
in class CommandShell
args
- IOException
public String getCommandUsage()
CommandShell
getCommandUsage
in class CommandShell
protected char[] promptForCredential() throws IOException
IOException
public CredentialShell.PasswordReader getPasswordReader()
public void setPasswordReader(CredentialShell.PasswordReader reader)
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.