Configurable, Toolpublic class CredentialShell extends CommandShell
| Modifier and Type | Class | Description |
|---|---|---|
static class |
CredentialShell.PasswordReader |
To facilitate testing since Console is a final class.
|
CommandShell.SubCommand| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
NO_VALID_PROVIDERS |
| Constructor | Description |
|---|---|
CredentialShell() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getCommandUsage() |
Return usage string for the command including any summary of subcommands.
|
CredentialShell.PasswordReader |
getPasswordReader() |
|
protected int |
init(java.lang.String[] args) |
Parse the command line arguments and initialize the data.
|
static void |
main(java.lang.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, setConf@VisibleForTesting public static final java.lang.String NO_VALID_PROVIDERS
protected int init(java.lang.String[] args)
throws java.io.IOException
% hadoop credential create alias [-provider providerPath] % hadoop credential list [-provider providerPath] % hadoop credential check alias [-provider providerPath] % hadoop credential delete alias [-provider providerPath] [-f]
init in class CommandShellargs - args.java.io.IOException - raised on errors performing I/O.public java.lang.String getCommandUsage()
CommandShellgetCommandUsage in class CommandShellprotected char[] promptForCredential()
throws java.io.IOException
java.io.IOExceptionpublic CredentialShell.PasswordReader getPasswordReader()
public void setPasswordReader(CredentialShell.PasswordReader reader)
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - Command line argumentsjava.lang.Exception - exception.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.