Secure Storage and Password Recovery [message #134554] |
Tue, 07 July 2009 02:17  |
Eclipse User |
|
|
|
Upon creating a new master password for a password provider, a prompt is
shown asking me if I wish to set password recovery. Since I am using my
own password provider and I don't wish that users will have any
interaction with the defined master password, I want to disable this
prompt.
I have added the following hint to the provider definition (in the
plugins.xml):
<hint value="AutomaticPasswordGeneration"/>
and I am using "IProviderHints.PROMPT_USER = false" when opening a secure
storage.
None of this work (prompt is shown anyway), is there a way not to show the
prompt when using the password provider for the first time?
|
|
|
Re: Secure Storage and Password Recovery [message #514216 is a reply to message #134554] |
Fri, 12 February 2010 15:57  |
Eclipse User |
|
|
|
It's been a while since this thread was started, so you probably moved on long ago. But I just had to figure out how to solve exactly the same problem. I thought I'd post my solution, in case it might be helpful to anybody else.
This isn't exposed as API, so I had to use a sort of backdoor tactic through internal packages (SecurePreferencesWrapper and SecurePreferencesContainer). I think it should be externalized, though, and hopefully it will be in the future.
ISecurePreferences basePrefs = SecurePreferencesFactory.open(myPrefsURL, null);
SecurePreferencesContainer prefsContainer = ((SecurePreferencesWrapper) basePrefs).getContainer();
prefsContainer.setOption(IProviderHints.PROMPT_USER, new Boolean(false));
Regards,
Kim Winz
ImageQuix Software Development
[Updated on: Wed, 17 February 2010 17:17] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02993 seconds