Bundle Security [message #726578] |
Sun, 18 September 2011 18:58 |
Phaedrus The Greek Messages: 17 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
|
|
|
Powered by
FUDForum. Page generated in 0.03163 seconds