@Component public class SecurityMetadataSourceStorage extends Object
Description: SecurityMetadata 本地存储
| 构造器和说明 |
|---|
SecurityMetadataSourceStorage() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addToStorage(LinkedHashMap<HerodotusRequestMatcher,Collection<org.springframework.security.access.ConfigAttribute>> securityMetadata,
boolean isIndexable)
将权限数据添加至本地存储
|
void |
addToStorage(LinkedHashMap<HerodotusRequestMatcher,Collection<org.springframework.security.access.ConfigAttribute>> matchers,
LinkedHashMap<HerodotusRequestMatcher,Collection<org.springframework.security.access.ConfigAttribute>> securityMetadata,
boolean isIndexable)
将权限数据添加至本地存储,存储之前进行规则冲突校验
|
Collection<org.springframework.security.access.ConfigAttribute> |
getAllConfigAttributes()
从 allConfigAttributes 缓存中获取全部
ConfigAttribute |
LinkedHashMap<HerodotusRequestMatcher,Collection<org.springframework.security.access.ConfigAttribute>> |
getCompatible()
从 compatible 缓存中获取全部不需要路径匹配的(包含*号的url)请求权限映射Map
|
Collection<org.springframework.security.access.ConfigAttribute> |
getConfigAttribute(String url,
String method)
根据请求的 url 和 method 获取权限对象
|
public Collection<org.springframework.security.access.ConfigAttribute> getAllConfigAttributes()
ConfigAttributeSecurityMetadataSource.getAllConfigAttributes()public Collection<org.springframework.security.access.ConfigAttribute> getConfigAttribute(String url, String method)
url - 请求 URLmethod - 请求 methodpublic LinkedHashMap<HerodotusRequestMatcher,Collection<org.springframework.security.access.ConfigAttribute>> getCompatible()
LinkedHashMappublic void addToStorage(LinkedHashMap<HerodotusRequestMatcher,Collection<org.springframework.security.access.ConfigAttribute>> securityMetadata, boolean isIndexable)
securityMetadata - 权限数据isIndexable - true 存入 indexable cache;false 存入 compatible cachepublic void addToStorage(LinkedHashMap<HerodotusRequestMatcher,Collection<org.springframework.security.access.ConfigAttribute>> matchers, LinkedHashMap<HerodotusRequestMatcher,Collection<org.springframework.security.access.ConfigAttribute>> securityMetadata, boolean isIndexable)
matchers - 校验资源securityMetadata - 权限数据isIndexable - true 存入 indexable cache;false 存入 compatible cacheCopyright © 2023 Dromara. All rights reserved.