<b:bean id="customFilter"
class="com.mybatis.security.FilerSecurityInterceptor">
<b:property name="authenticationManager"
ref="authenticationManager"/> <!-- 认证管理 -->
<b:property name="accessDecisionManager"
ref="customAccessDecisionManager"/><!-- 访问决策管理 -->
<b:property name="securityMetadataSource"
ref="customSecurityMetadataSource"/> <!--安全性元数据源 -->
</b:bean>
UserAccessDecisionManager( 访问决策管理 )里的方法:
public void decide(Authentication authentication, Object object, Collection<ConfigAttribute> configAttributes)
throws AccessDeniedException, InsufficientAuthenticationException {。。。}
authentication这个当前用户信息是空的它取的是默认的这值;我现在想手动添加当前用户信息;
我的这个场景是移动端上传数据(带用户信息到服务端代理GenericServlet,在GenericServlet中启动Spring容器,然后调用相应实际的servlet;
请高手帮忙看一下,谢了;