|
|||||||||
| 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 String |
getDomain()
|
static String |
getPartition()
|
static String |
getPassword()
|
static String |
getRealm()
|
static String |
getUsername()
|
static String |
readTrimmedLine(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(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(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 String readTrimmedLine(BufferedReader reader)
throws IOException
reader - to read from
IOException - propogates any IOException encountered while reading a linepublic static String getUsername()
public static String getPassword()
public static String getDomain()
public static String getPartition()
public static String getRealm()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||