SEC-2074: Update reference to use <method-security-metadata-source>
This commit is contained in:
parent
6e47834d77
commit
373fe3a9f1
|
@ -35,10 +35,10 @@
|
||||||
<property name="accessDecisionManager" ref="accessDecisionManager"/>
|
<property name="accessDecisionManager" ref="accessDecisionManager"/>
|
||||||
<property name="afterInvocationManager" ref="afterInvocationManager"/>
|
<property name="afterInvocationManager" ref="afterInvocationManager"/>
|
||||||
<property name="securityMetadataSource">
|
<property name="securityMetadataSource">
|
||||||
<value>
|
<sec:method-security-metadata-source>
|
||||||
com.mycompany.BankManager.delete*=ROLE_SUPERVISOR
|
<sec:protect method="com.mycompany.BankManager.delete*" access="ROLE_SUPERVISOR"/>
|
||||||
com.mycompany.BankManager.getBalance=ROLE_TELLER,ROLE_SUPERVISOR
|
<sec:protect method="com.mycompany.BankManager.getBalance" access="ROLE_TELLER,ROLE_SUPERVISOR"/>
|
||||||
</value>
|
</sec:method-security-metadata-source>
|
||||||
</property>
|
</property>
|
||||||
</bean> ]]>
|
</bean> ]]>
|
||||||
</programlisting></para>
|
</programlisting></para>
|
||||||
|
@ -69,10 +69,10 @@
|
||||||
<property name="accessDecisionManager" ref="accessDecisionManager"/>
|
<property name="accessDecisionManager" ref="accessDecisionManager"/>
|
||||||
<property name="afterInvocationManager" ref="afterInvocationManager"/>
|
<property name="afterInvocationManager" ref="afterInvocationManager"/>
|
||||||
<property name="securityMetadataSource">
|
<property name="securityMetadataSource">
|
||||||
<value>
|
<sec:method-security-metadata-source>
|
||||||
com.mycompany.BankManager.delete*=ROLE_SUPERVISOR
|
<sec:protect method="com.mycompany.BankManager.delete*" access="ROLE_SUPERVISOR"/>
|
||||||
com.mycompany.BankManager.getBalance=ROLE_TELLER,ROLE_SUPERVISOR
|
<sec:protect method="com.mycompany.BankManager.getBalance" access="ROLE_TELLER,ROLE_SUPERVISOR"/>
|
||||||
</value>
|
</sec:method-security-metadata-source>
|
||||||
</property>
|
</property>
|
||||||
</bean>]]> </programlisting>
|
</bean>]]> </programlisting>
|
||||||
<para>As you can see, aside from the class name, the
|
<para>As you can see, aside from the class name, the
|
||||||
|
|
Loading…
Reference in New Issue