Quantcast

Don't carry out doGetAuthorizationInfo method after landing

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Don't carry out doGetAuthorizationInfo method after landing

mengxiangrui
This post has NOT been accepted by the mailing list yet.
<?xml version="1.0" encoding="UTF-8"?>  
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
       xmlns:util="http://www.springframework.org/schema/util" 
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd 
    http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.2.xsd"> 
 
    <description>Shiro安全配置</description> 
 
     
    <bean id="securityManager" class="org.apache.shiro.web.mgt.DefaultWebSecurityManager"> 
        <property name="realm" ref="abroadRealm"/> 
         
        <property name="cacheManager" ref="shiroEhcacheManager"/> 
         
        <property name="sessionManager" ref="sessionManager"/>
       
        <property name="rememberMeManager" ref="rememberMeCookie"/>
    </bean> 
 
     
    <bean id="abroadRealm" class="com.abroad.security.shiro.AbroadRealm"> 
    <property name="credentialsMatcher" ref="hashedCredentialsMatcher"></property>
    </bean> 
   
     
    <bean id="shiroEhcacheManager" class="org.apache.shiro.cache.ehcache.EhCacheManager"> 
        <property name="cacheManagerConfigFile" value="classpath:config/ehcache-shiro.xml"/> 
    </bean> 
   
    <bean id="sessionManager" class="org.apache.shiro.web.session.mgt.DefaultWebSessionManager"> 
         
        <property name="globalSessionTimeout" value="1800000"/> 
         
        <property name="deleteInvalidSessions" value="false"/> 
         
        <property name="sessionValidationSchedulerEnabled" value="false"/> 
         
        <property name="sessionValidationInterval" value="1800000"/> 
        <property name="sessionFactory" ref="sessionFactory"/> 
        <property name="sessionDAO" ref="sessionDao"/> 
         
        <property name="sessionIdCookie"> 
            <bean class="org.apache.shiro.web.servlet.SimpleCookie"> 
                <constructor-arg name="name" value="SHRIOSESSIONID"/> 
            </bean> 
        </property> 
        <property name="sessionListeners"> 
            <list> 
                <bean class="com.abroad.security.shiro.ShiroSessionListener"/> 
            </list> 
        </property> 
    </bean> 
   
    <bean id="sessionFactory" class="com.abroad.security.shiro.ShiroSessionFactory"/> 
 
     
     
     
     
     
    <bean id="sessionDao" class="com.abroad.security.shiro.redis.RedisSessionDao"/> 
 
   
     
 
     
    <bean id="lifecycleBeanPostProcessor" class="org.apache.shiro.spring.LifecycleBeanPostProcessor"/> 
     
    <bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"  
          depends-on="lifecycleBeanPostProcessor"> 
        <property name="proxyTargetClass" value="true"/> 
    </bean> 
    <bean class="org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor" > 
        <property name="securityManager" ref="securityManager"/> 
    </bean> 
</beans> 
Loading...