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.IOException
public StorageAuthInfoGetter(Console console) throws IOException
IOException
public String getUserName(String url) throws IOException
url
- IOException
public char[] getPassword(String url) throws IOException
url
- IOException
Copyright © 2018. All rights reserved.