org.apache.shiro.web.filter.AccessControlFilter Java Examples
The following examples show how to use
org.apache.shiro.web.filter.AccessControlFilter.
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: IamShiroFilterFactoryBean.java From super-cloudops with Apache License 2.0 | 5 votes |
/** * See: {@link ShiroFilterFactoryBean#applyLoginUrlIfNecessary} * * @param filter */ private void applyLoginUrlIfNecessary(Filter filter) { String loginUrl = getLoginUrl(); if (StringUtils.hasText(loginUrl) && (filter instanceof AccessControlFilter)) { AccessControlFilter acFilter = (AccessControlFilter) filter; // only apply the login url if they haven't explicitly configured // one already: String existingLoginUrl = acFilter.getLoginUrl(); if (AccessControlFilter.DEFAULT_LOGIN_URL.equals(existingLoginUrl)) { acFilter.setLoginUrl(loginUrl); } } }
Example #2
Source File: ShiroCasFilterFactoryBean.java From shiro-cas-spring-boot-starter with Apache License 2.0 | 4 votes |
protected boolean supports(Filter filter) { return filter instanceof AccessControlFilter || filter instanceof LogoutFilter; }
Example #3
Source File: ShiroFilterRegistry.java From shiro-spring-boot-starter with Apache License 2.0 | 4 votes |
public void addShiroFilter(String name, AccessControlFilter filter) { filterMap.put(name, filter); }
Example #4
Source File: ShiroFilterRegistry.java From shiro-spring-boot-starter with Apache License 2.0 | 4 votes |
public Map<String, AccessControlFilter> getFilterMap() { return filterMap; }