Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Orion » ISecurePreferences storage(ISecurePreferences storage)
ISecurePreferences storage [message #1043015] Wed, 17 April 2013 06:54 Go to next message
Tsahar Sobe is currently offline Tsahar SobeFriend
Messages: 8
Registered: April 2013
Junior Member
Hi
In class SecureStorageCredentialsService the Orion server calls to initSecurePreferences that init the storage.

How can I get this storage from another place in the program?
I want the specific storage that was initialized and not the default.

Thank you very much,
Tsahar
Re: ISecurePreferences storage [message #1043414 is a reply to message #1043015] Wed, 17 April 2013 17:21 Go to previous messageGo to next message
John Arthorne is currently offline John ArthorneFriend
Messages: 174
Registered: July 2009
Senior Member
This is published as an OSGi service. The service interface is org.eclipse.orion.server.useradmin.IOrionGuestCredentialsService. So you can obtain that service using the API on org.osgi.framework.BundleContext, or using OSGi declarative services which is what most of our code does (declarative files in OSGI-INF directory tell the framework what services to inject into your component).
Re: ISecurePreferences storage [message #1050704 is a reply to message #1043414] Sat, 27 April 2013 16:12 Go to previous message
Mark Macdonald is currently offline Mark MacdonaldFriend
Messages: 22
Registered: July 2009
Junior Member
One minor correction to John's response -- the service interface you want is org.eclipse.orion.server.useradmin.IOrionCredentialsService.
Previous Topic:Servlet in Orion server
Next Topic:unpacking the eclipse-orion-XXX-macosx.cocoa.x86_64.zip file
Goto Forum:
  


Current Time: Sun Nov 23 08:52:01 GMT 2014

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

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