protect-pointcut-performance-app-context.xml 1.6 KB

1234567891011121314151617181920212223242526
  1. <beans xmlns="http://www.springframework.org/schema/beans"
  2. xmlns:sec="http://www.springframework.org/schema/security"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  5. http://www.springframework.org/schema/security https://www.springframework.org/schema/security/spring-security.xsd">
  6. <sec:global-method-security>
  7. <sec:protect-pointcut expression="execution(* org.springframework.security.core.session.SessionRegistry.refreshLastRequest(..))" access="ROLE_ADMIN" />
  8. <sec:protect-pointcut expression="execution(* org.springframework.security.core.session.SessionRegistry.registerNewSession(..))" access="ROLE_ADMIN" />
  9. <sec:protect-pointcut expression="execution(* org.springframework.security.core.session.SessionRegistry.removeSessionInformation(..))" access="ROLE_ADMIN" />
  10. <sec:protect-pointcut expression="execution(* org.springframework.security.core.session.SessionRegistry.get*(..))" access="ROLE_ADMIN" />
  11. </sec:global-method-security>
  12. <bean id="sessionRegistry" class="org.springframework.security.core.session.SessionRegistryImpl" />
  13. <bean id="sessionRegistryPrototype" class="org.springframework.security.core.session.SessionRegistryImpl" scope="prototype"/>
  14. <sec:authentication-manager alias="authenticationManager">
  15. <sec:authentication-provider>
  16. <sec:user-service id="userService">
  17. <sec:user name="notused" password="notused" authorities="ROLE_0,ROLE_1"/>
  18. </sec:user-service>
  19. </sec:authentication-provider>
  20. </sec:authentication-manager>
  21. </beans>