Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Bundle Security(How to control access from one bundle to another at runtime)
Bundle Security [message #726578] Sun, 18 September 2011 18:58
Phaedrus The Greek is currently offline Phaedrus The Greek
Messages: 16
Registered: August 2011
Junior Member
Hello group,

I am building an application that is plugin based. I want to create 2 APIs. 1 API is public, and all bundles can access it no matter what, but the other API has some security. I want to make it so that a given bundle can only access my security API after the User has allowed it, like in the following example:

public class SecureAPIImpl {
 public String getSecureProperty(Object id){
   bundle_id = ? <- how do i figure that out?
   if (MessageDialog("Allow Bundle " + bundle_id + " access to security property + " id + " ?"))
     return getSecureProperty(id)
   else 
     throw new AccessDeniedException("Property access denied by user");
 }
}


Please keep in mind that there is probably something simple I am missing, as I am not the most experienced.

Also note that this decision must be made by the user at runtime, because at development time, I don't know what plugins will be written, so I can't explicitly allow them.

Thanks so much for this consideration!!!

Sincerely,
Jay
Previous Topic:View ID changed - how to migrate perspectives
Next Topic:Export Product / GC Error
Goto Forum:
  


Current Time: Wed Oct 01 10:37:22 GMT 2014

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

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