`
Dead_knight
  • 浏览: 1193738 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
博客专栏
752c8642-b795-3fe6-946e-a4e845bffdec
Spring Securi...
浏览量:238196
33caa84e-18a6-3036-a82b-6e2106a4de63
clojure专题
浏览量:48049
E17ca077-44df-3816-a3fe-471c43f6e1e5
WebLogic11g
浏览量:235906
社区版块
存档分类
最新评论
文章列表
SecurityContextHolderAwareRequestFilter过滤器对应的类路径为 org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter 从类名称可以猜出这个过滤器主要是包装请求对象request的,看源码 public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletExc ...
RememberMeAuthenticationFilter过滤器对应的类路径为 org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter 看主要的doFilter方法 public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpSe ...
UsernamePasswordAuthenticationFilter过滤器对应的类路径为 org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter 实际上这个Filter类的doFilter是父类AbstractAuthenticationProcessingFilter的 public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) thro ...
LogoutFilter过滤器对应的类路径为 org.springframework.security.web.authentication.logout.LogoutFilter 通过这个类的源码可以看出,这个类有两个构造函数 public LogoutFilter(LogoutSuccessHandler logoutSuccessHandler, LogoutHandler... handlers) { Assert.notEmpty(handlers, "LogoutHandlers are required"); th ...
通过观察Filter的名字,就能大概猜出来这个过滤器的作用,是的,持久化SecurityContext实例。这个过滤器位置是; org.springframework.security.web.context.SecurityContextPersistenceFilter 废话不说,看源码 public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpSe ...
通过FilterChainProxy的初始化、自定义标签的分析后,Spring Security需要的运行环境已经准备好了。 这样当用户访问应用时,过滤器就开始工作了。web.xml配置的Filter:org.springframework.web.filter.DelegatingFilterProxy就不介绍了,该类仅仅是初始化一个FilterChainProxy,然后把所有拦截的请求交给FilterChainProxy处理。 FilterChainProxy的doFilter方法如下 public void doFilter(ServletRequest request, ...
讲解完http标签的解析过程,authentication-manager标签解析部分就很容易理解了 authentication-manager标签在spring的配置文件中的定义一般如下 <authentication-manager alias="authenticationManager"> <authentication-provider user-service-ref="userDetailsManager"/> </authentication-manager> authentica ...
在FilterChainProxy初始化的过程中,大概描述了标签解析的一些步骤,但不够详细 <http auto-config="true"> <remember-me key="workweb" token-validity-seconds="3600" data-source-ref="dataSource"/> <form-login lo ...
很久没有更新博客了,最近对Spring Security做了比较深入的研究。 spring security的教程网上很多: http://lengyun3566.iteye.com/category/153689 http://wenku.baidu.com/view/b0c0dc0b79563c1ec5da7179.html 以上教程足够应付在实际项目中使用spring security这一安全框架了。如果想深入研究下,网上的资料就很少了,比如: http://www.blogjava.net/SpartaYew/archive/2011/05/19/spingsecurity3.html ...
apache反向代理出现的问题: 一、问题描述: 用户访问时经常出现“无法显示网页”类似的问题 通过跟踪logs下的error.log,出现大量一下错误信息 [Mon Mar 12 10:58:50 2012] [warn] (OS 64)指定的网络名不再可用。 : winnt_accept: Asynchronous AcceptEx failed. 二、版本 apache2 三、解决办法 1.升级到版本apache2.2 2.主要更改的配置为 <IfModule mpm_winnt.c> ThreadsPerChild 768 MaxRequestsPer ...
weblogic8实现SSO的一种简单方案,就是通过IdentityAsserter解决。 步骤一、SSO目标配置 <security-constraint> <web-resource-collection> <web-resource-name>Protected Area</web-resource-name> <url-pattern>*.jsp</url-pattern> <url-pattern>*.do</url-pattern> ...
一、创建 MBean 定义文件MDF(与Weblogic8一致) 文件名称为:WorkSecurityAuthenticator.xml <?xml version="1.0" ?> <!DOCTYPE MBeanType SYSTEM "commo.dtd"> <MBeanType Name = "WorkSecurityAuthenticator" DisplayName = "Work Security Authenticator" P ...
问题: 移动开通一个短信网关供系统发送短信,后来随着业务增加、以及外系统短信接口接入,导致本系统短信模块处理量急剧增加,每秒发送短信50-80条,每逢访问高峰期,导致短信网关堵塞。   其次是短信模块部署在应用系统现网环境中,应用系统与短信模块性能上相互影响,不稳定。   方案: 由于短信模块直接与短信网关打交道,而应用系统、外系统想发送短息直接与短信模块打交道 可单独部署一个短信服务域,本系统、外系统直接访问短信服务域公布的接口访问即可。 通过在短信模块与短信网关中间建立一个缓冲池(JMS)缓冲短消息   实施: 步骤一、 服务域的部署(省略)   步骤二、 配置 ...
问题: 项目为工作流系统,工作流核心表涉及三张表,分别为 表A:工单表 表B:工单任务表 表C:工单任务参与表 随着数据量急剧增加,表C达到1亿,表B达到2000万,表A达到500万 此时对这三张表做关联查询时,尽管通过索引以 ...
    window.showModalDialog() 方法用来创建一个显示HTML内容的模态对话框。   vReturnValue = window.showModalDialog(sURL [, vArguments] [,sFeatures])     sURL -- 必选参数,类型:字符串。用来指定对话框要显示的文档的URL     vArguments -- 可选参数,类型:变体。用来向对话框传递参数。 传递的参数类型不限,包括数组等。对话框通过window.dialogArguments来取得传递进来的参数。         sFeatures -- 可选参数,类型:字符串。用来描 ...
Global site tag (gtag.js) - Google Analytics