Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » JAAS in 3.4
JAAS in 3.4 [message #108820] Thu, 24 April 2008 18:00
Mark Hoffmann is currently offline Mark HoffmannFriend
Messages: 113
Registered: July 2009
Location: Jena
Senior Member
Hello,

I tried the JAAS component that is new in 3.4 and it works very well. Now
I want to introduce not only authentication but also authorization. The
way I know is to create own Permissions and put them in the policy-file.
For that I have to run the RCP with -Djava.security.manager. If I run the
Mail-RCP example with -Djava.security.manager I only get
java.security.AccessControlException: access denied
(java.util.PropertyPermission eclipse.exitcode read)
at
java.security.AccessControlContext.checkPermission(AccessCon trolContext.java:264)
at
java.security.AccessController.checkPermission(AccessControl ler.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.ja va:532)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManage r.java:1285)
at java.lang.System.getProperty(System.java:628)
at org.eclipse.equinox.launcher.Main.run(Main.java:1246)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Exception in thread "main" java.security.AccessControlException: access
denied (java.util.PropertyPermission osgi.noShutdown read)
at
java.security.AccessControlContext.checkPermission(AccessCon trolContext.java:264)
at
java.security.AccessController.checkPermission(AccessControl ler.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.ja va:532)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManage r.java:1285)
at java.lang.System.getProperty(System.java:628)
at java.lang.Boolean.getBoolean(Boolean.java:221)
at org.eclipse.equinox.launcher.Main.main(Main.java:1218)

I have the default policy file that contains AllPermissions.

I've read about the OSGI-INF/permission.perm file. Do I need this file?
How is the structure of it, in case I need it.

Can anyone point me in the right direction. What am I doing wrong. Thanks
for your comments.

Mark
Previous Topic:DS - example for factories?
Next Topic:Is OSGi scaleable
Goto Forum:
  


Current Time: Fri Mar 29 11:07:15 GMT 2024

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

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

Back to the top