当前位置: 首页>>代码示例>>Java>>正文


Java LogoutFilter.setFilterProcessesUrl方法代码示例

本文整理汇总了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;
}
 
开发者ID:PacktPublishing,项目名称:Spring-Security-Third-Edition,代码行数:12,代码来源:CasConfig.java

示例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;
}
 
开发者ID:mouxiao,项目名称:shootmimi,代码行数:10,代码来源:CasSecurityConfig.java

示例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);
}
 
开发者ID:motech,项目名称:motech,代码行数:11,代码来源:SecurityRuleBuilder.java

示例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;
}
 
开发者ID:dovier,项目名称:coj-web,代码行数:7,代码来源:SecurityConfiguration.java


注:本文中的org.springframework.security.web.authentication.logout.LogoutFilter.setFilterProcessesUrl方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。