org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource Java Examples
The following examples show how to use
org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestUrlResourcePopulator.java From lemon with Apache License 2.0 | 6 votes |
public void execute(Map<String, String> resourceMap) { Assert.notNull(filterSecurityInterceptor); Assert.notNull(resourceMap); logger.info("refresh url resource"); LinkedHashMap<RequestMatcher, Collection<ConfigAttribute>> requestMap = null; requestMap = new LinkedHashMap<RequestMatcher, Collection<ConfigAttribute>>(); for (Map.Entry<String, String> entry : resourceMap.entrySet()) { String key = entry.getKey(); String value = entry.getValue(); requestMap.put(new AntPathRequestMatcher(key), SecurityConfig.createListFromCommaDelimitedString(value)); } FilterInvocationSecurityMetadataSource source = new DefaultFilterInvocationSecurityMetadataSource( requestMap); filterSecurityInterceptor.setSecurityMetadataSource(source); }
Example #2
Source File: UrlResourcePopulator.java From lemon with Apache License 2.0 | 6 votes |
public void execute(FilterSecurityInterceptor filterSecurityInterceptor, Map<String, String> resourceMap) { Assert.notNull(filterSecurityInterceptor); Assert.notNull(resourceMap); logger.info("refresh url resource"); LinkedHashMap<RequestMatcher, Collection<ConfigAttribute>> requestMap = null; requestMap = new LinkedHashMap<RequestMatcher, Collection<ConfigAttribute>>(); for (Map.Entry<String, String> entry : resourceMap.entrySet()) { String key = entry.getKey(); String value = entry.getValue(); requestMap.put(new AntPathRequestMatcher(key), SecurityConfig.createListFromCommaDelimitedString(value)); } FilterInvocationSecurityMetadataSource source = new DefaultFilterInvocationSecurityMetadataSource( requestMap); filterSecurityInterceptor.setSecurityMetadataSource(source); }
Example #3
Source File: UrlSourceBuilder.java From lemon with Apache License 2.0 | 5 votes |
public void refresh() { if ((filterSecurityInterceptor == null) || (urlSourceFetcher == null)) { logger.info( "filterSecurityInterceptor : {}, urlSourceFetcher : {}", filterSecurityInterceptor, urlSourceFetcher); return; } logger.info("execute refresh"); Map<String, String> resourceMap = urlSourceFetcher.getSource(null); LinkedHashMap<RequestMatcher, Collection<ConfigAttribute>> requestMap = null; requestMap = new LinkedHashMap<RequestMatcher, Collection<ConfigAttribute>>(); for (Map.Entry<String, String> entry : resourceMap.entrySet()) { String key = entry.getKey(); String value = entry.getValue(); requestMap.put(new AntPathRequestMatcher(key), SecurityConfig.createListFromCommaDelimitedString(value)); } FilterInvocationSecurityMetadataSource source = new DefaultFilterInvocationSecurityMetadataSource( requestMap); filterSecurityInterceptor.setSecurityMetadataSource(source); }
Example #4
Source File: DynamicallyUrlInterceptor.java From base-admin with MIT License | 4 votes |
public FilterInvocationSecurityMetadataSource getSecurityMetadataSource() { return this.securityMetadataSource; }
Example #5
Source File: DynamicallyUrlInterceptor.java From base-admin with MIT License | 4 votes |
public void setSecurityMetadataSource(FilterInvocationSecurityMetadataSource newSource) { this.securityMetadataSource = newSource; }
Example #6
Source File: CustomFilterSecurityInterceptor.java From bbs with GNU Affero General Public License v3.0 | 4 votes |
public FilterInvocationSecurityMetadataSource getSecurityMetadataSource(){ return this.securityMetadataSource; }
Example #7
Source File: CustomFilterSecurityInterceptor.java From bbs with GNU Affero General Public License v3.0 | 4 votes |
public void setSecurityMetadataSource(FilterInvocationSecurityMetadataSource securityMetadataSource){ this.securityMetadataSource = securityMetadataSource; }
Example #8
Source File: ExpressionFilterInvocationSecurityMetadataSource.java From oauth2-resource with MIT License | 4 votes |
public ExpressionFilterInvocationSecurityMetadataSource(FilterInvocationSecurityMetadataSource expressionBasedFilterInvocationSecurityMetadataSource, ResourceEntityMapper resourceEntityMapper) { this.hardCodedSecurityMetadataSource = expressionBasedFilterInvocationSecurityMetadataSource; this.resourceEntityMapper = resourceEntityMapper; }
Example #9
Source File: FilterSecurityInterceptor.java From bdf3 with Apache License 2.0 | 4 votes |
public FilterInvocationSecurityMetadataSource getSecurityMetadataSource() { return this.securityMetadataSource; }
Example #10
Source File: FilterSecurityInterceptor.java From bdf3 with Apache License 2.0 | 4 votes |
public void setSecurityMetadataSource(FilterInvocationSecurityMetadataSource newSource) { this.securityMetadataSource = newSource; }
Example #11
Source File: ResourceSecurityFilter.java From zxl with Apache License 2.0 | 4 votes |
public FilterInvocationSecurityMetadataSource getSecurityMetadataSource() { return this.securityMetadataSource; }
Example #12
Source File: ResourceSecurityFilter.java From zxl with Apache License 2.0 | 4 votes |
public void setSecurityMetadataSource(FilterInvocationSecurityMetadataSource newSource) { this.securityMetadataSource = newSource; }