portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Liao <jian.l...@gmail.com>
Subject How to make use of useDefaultPolicy flag of AuthorizationProvider
Date Tue, 10 Jan 2006 05:21:06 GMT
Hi all,
I read this from

   - AuthorizationProvider : Configures the policies and instantiates the
   SecurityPolicies that are used for enforcing permissions. By default,
   Jetspeed 2 does not load any other security policies that may have been
   configured. In order to use default policies, set useDefaultPolicy to

   <bean id="org.apache.jetspeed.security.AuthorizationProvider"
       <constructor-arg index="0">
           <ref bean="org.apache.jetspeed.security.impl.RdbmsPolicy"/>
       <!-- Does not use the default policy as a default behavior -->
       <constructor-arg index="1"><value>false</value></constructor-arg>

Then I follow the instruction to set useDefaultPolicy = true, but it seems
that this is meaningless, because RdbmsPolicy never call
getPermissions(ProtectionDomain domain) in its implies(ProtectionDomain
protectionDomain, Permission permission). RdbmsPolicy create its
PermissionCollection by calling PermissionManager.getPermissions(Collection
principals) directly.

- Jian Liao

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message