Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / January 2004

Tip: Looking for answers? Try searching our database.

How do I get Permission?  (Stuts and JAAS)

Thread view: 
Edward - 04 Sep 2003 14:09 GMT
I am developing an intranet using the Stuts framework and implementing JAAS.

I have implemented much of the advice found on
http://www.darkwolf.ws/docs/java/JAAS.htm to configure JAAS into a Struts
application.

I just cannot figure out how to get the Permission object that represents
the URL that a user is trying to access.

Can anyone explain the following snippet.?

Permission perm = PermissionFactory.getInstance().getPermission(
pageReqested );

Also.

How can you create a Permission class that understands URL's? How would you
extend java.security.permission class to handle wild cards similar to the
java.io.FilePermission class.
Daniele Cremonini - 04 Sep 2003 18:32 GMT
Hi,
I'm trying to get JBuilder 9 working with Struts 1.1 but I have some
problems.
What version of JB and Struts are you using?
thanks
D.

> I am developing an intranet using the Stuts framework and implementing JAAS.
>
[quoted text clipped - 15 lines]
> extend java.security.permission class to handle wild cards similar to the
> java.io.FilePermission class.
Edward - 05 Sep 2003 08:10 GMT
I'm using JB9 with Stuts 1.1 with no problems.

> Hi,
> I'm trying to get JBuilder 9 working with Struts 1.1 but I have some
[quoted text clipped - 24 lines]
> > extend java.security.permission class to handle wild cards similar to the
> > java.io.FilePermission class.
sub - 19 Jan 2004 13:08 GMT
This is also my query . From where I can get PermissionFactory dfor the follwoing code snippet?

PermissionFactory.getInstance().getPermission(
> pageReqested );

Please give advice. This will be really helpful.
Yashwant - 18 Sep 2003 18:37 GMT
Hi Edward,

I am having exactly a similar problem. Have you been able to get any
solution?
Also if I extend permission class to make my own URLPermission then
just for access to URL's does it need to have any specific code. I
thought that the access for that particular URL is granted in the
policy file itself.

thanks,
Yash

> I am developing an intranet using the Stuts framework and implementing JAAS.
>
[quoted text clipped - 15 lines]
> extend java.security.permission class to handle wild cards similar to the
> java.io.FilePermission class.
Edward - 22 Sep 2003 08:14 GMT
Nope...still looking

> Hi Edward,
>
[quoted text clipped - 27 lines]
> > extend java.security.permission class to handle wild cards similar to the
> > java.io.FilePermission class.
Edward - 25 Sep 2003 14:33 GMT
http://forum.java.sun.com/thread.jsp?forum=60&thread=445945&tstart=0&trange=15


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.