类 DefaultSecurityMetadataSource
java.lang.Object
com.walker.web.security.DefaultSecurityMetadataSource
- 所有已实现的接口:
org.springframework.aop.framework.AopInfrastructureBean,org.springframework.security.access.SecurityMetadataSource,org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource
public class DefaultSecurityMetadataSource
extends Object
implements org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource
请求资源过滤拦截元数据提供者,该对象会再用户每次请求时根据URL组装返回对应的角色集合,
以供框架判断是否能够访问。
该对象替换老版本中的
MySecurityMetadataSource- 从以下版本开始:
- 0.6.0
- 作者:
- 时克英
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Collection<org.springframework.security.access.ConfigAttribute>Collection<org.springframework.security.access.ConfigAttribute>getAttributes(Object object) voidvoidsetResourceLoaderProvider(ResourceLoadProvider resourceLoaderProvider) boolean
-
字段详细资料
-
logger
protected final transient org.slf4j.Logger logger
-
-
构造器详细资料
-
DefaultSecurityMetadataSource
public DefaultSecurityMetadataSource()
-
-
方法详细资料
-
setResourceLoaderProvider
-
getAllConfigAttributes
- 指定者:
getAllConfigAttributes在接口中org.springframework.security.access.SecurityMetadataSource
-
getAttributes
public Collection<org.springframework.security.access.ConfigAttribute> getAttributes(Object object) throws IllegalArgumentException - 指定者:
getAttributes在接口中org.springframework.security.access.SecurityMetadataSource- 抛出:
IllegalArgumentException
-
supports
- 指定者:
supports在接口中org.springframework.security.access.SecurityMetadataSource
-
reloadResource
public void reloadResource()
-