Skip to main content



      Home
Home » Eclipse Projects » Equinox » Secure Storage and Password Recovery
Secure Storage and Password Recovery [message #134554] Tue, 07 July 2009 02:17 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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

Previous Topic:NPE in eclipse osgi GroupingChecker/ResolverImpl
Next Topic:UI product build creating bundles.info
Goto Forum:
  


Current Time: Wed Jul 23 07:19:01 EDT 2025

Powered by FUDForum. Page generated in 0.03466 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top