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, setSubCommandgetConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConf, setConfpublic 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 CommandShellargs - IOExceptionpublic String getCommandUsage()
CommandShellgetCommandUsage in class CommandShellprotected char[] promptForCredential()
throws IOException
IOExceptionpublic CredentialShell.PasswordReader getPasswordReader()
public void setPasswordReader(CredentialShell.PasswordReader reader)
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.