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
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,
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
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 file
Goto Forum:

Current Time: Sat Jul 20 01:38:17 GMT 2024

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

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

Back to the top