Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Secure Storage and Password Recovery
Secure Storage and Password Recovery [message #134554] Tue, 07 July 2009 06:17 Go to next message
Idan is currently offline IdanFriend
Messages: 1
Registered: July 2009
Junior Member
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 20:57 Go to previous message
Kim Winz is currently offline Kim WinzFriend
Messages: 3
Registered: October 2009
Location: RTP, NC
Junior Member
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 22:17]

Report message to a moderator

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


Current Time: Wed Dec 17 19:58:00 GMT 2014

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

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