public class CachedPasswordProvider extends Object implements IPasswordProvider, IPrompter
IPasswordProvider.| Constructor and Description |
|---|
CachedPasswordProvider(IPasswordProvider passwordProvider) |
| Modifier and Type | Method and Description |
|---|---|
char[] |
getPassword()
Returns a password or null to indicate cancellation.
|
IPasswordProvider |
getPasswordProvider() |
void |
setMessage(String message) |
void |
setTitle(String title) |
public CachedPasswordProvider(IPasswordProvider passwordProvider)
public char[] getPassword()
IPasswordProviderYou should be prepared that requesting the password twice will return an empty array or null, as the provider may null out the object for security reasons.
getPassword in interface IPasswordProviderpublic IPasswordProvider getPasswordProvider()
public void setMessage(String message)
setMessage in interface IPrompterCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.