类 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
作者:
时克英
  • 字段详细资料

    • logger

      protected final transient org.slf4j.Logger logger
  • 构造器详细资料

    • DefaultSecurityMetadataSource

      public DefaultSecurityMetadataSource()
  • 方法详细资料

    • setResourceLoaderProvider

      public void setResourceLoaderProvider(ResourceLoadProvider resourceLoaderProvider)
    • getAllConfigAttributes

      public Collection<org.springframework.security.access.ConfigAttribute> 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

      public boolean supports(Class<?> arg0)
      指定者:
      supports 在接口中 org.springframework.security.access.SecurityMetadataSource
    • reloadResource

      public void reloadResource()