Spring 源代码解析(十):Spring Acegi 框架授权的实现
我们从 我们从入手看看怎样进行授权的:
代码
这里是拦截器拦截 请求的入口
!""#$
% "&'() ()*$
+ ,-&
"#.$
/ 0,#.$
1 2$
3 这是具体的拦截调用
4 0,#"&'()
()*$
5 6,7#8-#99,7#7:
;(<:;(=#8-#$
> 99'#*$
在第一次进行过安全检查之后就不会再做了
,7!"#,7# ,7#
#.$
% 2*$
+ 这是第一次收到相应的请求,需要做安全检测,同时把标志
为设置好 ?;(<:;(=,下次就再有请求就不会作相同的安全检
查了
/ 6,7#8-#*$
1 ,7#:;(<:;(= @
A(#.$
3 2$
4 这里是做安全检查的地方
5 00-6
,#.$
> 接着向拦截器链执行
*$
,7!"#,7# ,7
##.$
% 2,*$
+ 60 #.$
/ 2$
1 2$
3 2