[ http://jira.jboss.com/jira/browse/JBAS-1526?page=history ]
Scott M Stark updated JBAS-1526:
--------------------------------
Fix Version: JBossAS-4.0.2RC1
JBossPOJOServer-1.0 Alpha
JBossAS-5.0 Alpha
> Jacc: Request for the DelegatingPolicy.getPermissions(x) to also return the
> permissions of the replaced delegate
> ----------------------------------------------------------------------------------------------------------------
>
> Key: JBAS-1526
> URL: http://jira.jboss.com/jira/browse/JBAS-1526
> Project: JBoss Application Server
> Type: Bug
> Components: Security
> Versions: JBossAS-4.0.1 SP1
> Environment: -
> Reporter: Roland R?z
> Assignee: Scott M Stark
> Fix For: JBossAS-4.0.2RC1, JBossPOJOServer-1.0 Alpha, JBossAS-5.0 Alpha
>
> Original Estimate: 1 hour
> Remaining: 1 hour
>
> Jacc: Request for the DelegatingPolicy.getPermissions(x) to also return the
> permissions of the replaced delegate
> According to the JACC specification all Permissions of a CodeSource or
> ProtectionDomain should be returned. Currently these methods return only the
> JACC Permissions, without the Permissions of the delegate class.
> The JACC Specification states (http://java.sun.com/j2ee/javaacc/):
> 2.5 What a Provider Must Do
> <paragraph 3>
> A replacement Policy object must assume responsibility for performing all
> policy decisions within the JRE in which it is installed that are requested
> by way of the Policy interface that it implements.
> Example Implementation of DelegatingPolicy.getPermissions(x):
> public PermissionCollection getPermissions(ProtectionDomain domain) {
> PermissionCollection pc = super.getPermissions(domain);
> PermissionCollection delegated =
> delegate.getPermissions(domain);
> for (Enumeration e = delegated.elements();
> e.hasMoreElements();) {
> Permission p = (Permission) e.nextElement();
> pc.add(p);
> }
> return pc;
> }
> Regards,
> Andrea
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development