|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.stardust.engine.cli.security.authentication.ConsolePrompt
public class ConsolePrompt
Utility class used to prompt for and reading user credentials when login is done
from console (System.out) .
| Constructor Summary | |
|---|---|
ConsolePrompt()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getDomain()
|
static java.lang.String |
getPartition()
|
static java.lang.String |
getPassword()
|
static java.lang.String |
getRealm()
|
static java.lang.String |
getUsername()
|
static java.lang.String |
readTrimmedLine(java.io.BufferedReader reader)
Reads a single trimmed-line from the reader. |
static void |
show()
Prompts for credentials and reads them from console ( System.out). |
static void |
writeToConsole(java.lang.String message)
Writes the given message to the console ( System.out)
and flushes it to make sure that it is written. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConsolePrompt()
| Method Detail |
|---|
public static void show()
System.out).
public static final void writeToConsole(java.lang.String message)
System.out)
and flushes it to make sure that it is written.
message - message to be written to the console. Even null is accepted.
public static final java.lang.String readTrimmedLine(java.io.BufferedReader reader)
throws java.io.IOException
reader - to read from
java.io.IOException - propogates any IOException encountered while reading a linepublic static java.lang.String getUsername()
public static java.lang.String getPassword()
public static java.lang.String getDomain()
public static java.lang.String getPartition()
public static java.lang.String getRealm()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||