public class StorageAuthInfoGetter extends Object
| Constructor and Description |
|---|
StorageAuthInfoGetter(Console console) |
StorageAuthInfoGetter(Console console,
LocalizedString userPrompt,
LocalizedString passwordPrompt)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
char[] |
getPassword(String url)
Prompt the user for password necessary for connecting to a given url.
|
String |
getUserName(String url)
Prompt the user for username necessary for connecting to a given url.
|
public StorageAuthInfoGetter(Console console, LocalizedString userPrompt, LocalizedString passwordPrompt) throws IOException
console - The console to use.userPrompt - The prompt printed when asking for username.passwordPrompt - The prompt printed when asking for password.IOExceptionpublic StorageAuthInfoGetter(Console console) throws IOException
IOExceptionpublic String getUserName(String url) throws IOException
url - IOExceptionpublic char[] getPassword(String url) throws IOException
url - IOExceptionCopyright © 2015. All rights reserved.