Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Orion (Archived) » 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: 176
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: 35
Registered: July 2009
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: Fri Apr 26 05:43:03 GMT 2024

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

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

Back to the top