本文整理汇总了Java中org.springframework.security.web.authentication.logout.LogoutFilter.setFilterProcessesUrl方法的典型用法代码示例。如果您正苦于以下问题:Java LogoutFilter.setFilterProcessesUrl方法的具体用法?Java LogoutFilter.setFilterProcessesUrl怎么用?Java LogoutFilter.setFilterProcessesUrl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.springframework.security.web.authentication.logout.LogoutFilter
的用法示例。
在下文中一共展示了LogoutFilter.setFilterProcessesUrl方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configure
import org.springframework.security.web.authentication.logout.LogoutFilter; //导入方法依赖的package包/类
@Override
public void configure(HttpSecurity http) throws Exception {
http.logout()
.permitAll()
.logoutSuccessUrl("/logout.html")
.logoutRequestMatcher(new AntPathRequestMatcher("/logout"));
String logoutUrl = UriComponentsBuilder
.fromUri(casSecurityProperties.getServer().getBaseUrl())
.path(casSecurityProperties.getServer().getPaths().getLogout())
.toUriString();
LogoutFilter filter = new LogoutFilter(logoutUrl, new SecurityContextLogoutHandler());
filter.setFilterProcessesUrl("/cas/logout");
http.addFilterBefore(filter, LogoutFilter.class);
}
开发者ID:kakawait,项目名称:cas-security-spring-boot-starter,代码行数:15,代码来源:CasSecuritySpringBootSampleApplication.java
示例2: casLogoutFilter
import org.springframework.security.web.authentication.logout.LogoutFilter; //导入方法依赖的package包/类
/**
* Request single point exit filter
*/
@Bean
public LogoutFilter casLogoutFilter() {
LogoutFilter logoutFilter = new LogoutFilter(
casServerLogout,
new SecurityContextLogoutHandler());
logoutFilter.setFilterProcessesUrl("/logout");
return logoutFilter;
}
示例3: requestSingleLogoutFilter
import org.springframework.security.web.authentication.logout.LogoutFilter; //导入方法依赖的package包/类
/**
* 请求单点退出过滤器
*/
@Bean
public LogoutFilter requestSingleLogoutFilter() {
LogoutFilter logoutFilter = new LogoutFilter(casProperties.getCasServerLogoutUrl(), new SecurityContextLogoutHandler());
logoutFilter.setFilterProcessesUrl(casProperties.getAppLogoutUrl());
return logoutFilter;
}
示例4: addLogoutFilter
import org.springframework.security.web.authentication.logout.LogoutFilter; //导入方法依赖的package包/类
private void addLogoutFilter(List<Filter> filters, MotechURLSecurityRule securityRule) {
if (securityRule.isRest()) {
return;
}
LogoutHandler springLogoutHandler = new SecurityContextLogoutHandler();
LogoutFilter logoutFilter = new LogoutFilter("/module/server/login", motechLogoutHandler, springLogoutHandler);
logoutFilter.setFilterProcessesUrl("/module/server/j_spring_security_logout");
filters.add(logoutFilter);
}
示例5: logoutFilter
import org.springframework.security.web.authentication.logout.LogoutFilter; //导入方法依赖的package包/类
@Bean
public LogoutFilter logoutFilter(){
LogoutFilter bean = new LogoutFilter(logoutUrl,rememberMeServices(),new SecurityContextLogoutHandler());
bean.setFilterProcessesUrl(logoutFilterProcessesUrl);
return bean;
}