资源简介
cas-client-autoconfig-support, Apereo Java客户端支持基于注释的配置 cas-client-autoconfig-support 为CAS Java客户端提供基于注释的配置支持的库,这个项目是作为Unicon的开源支持程序的一部
代码片段和文件信息
package net.unicon.cas.client.configuration;
import org.jasig.cas.client.authentication.AuthenticationFilter;
import org.jasig.cas.client.authentication.Saml11AuthenticationFilter;
import org.jasig.cas.client.util.AssertionThreadLocalFilter;
import org.jasig.cas.client.util.HttpServletRequestWrapperFilter;
import org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter;
import org.jasig.cas.client.validation.Cas30ProxyReceivingTicketValidationFilter;
import org.jasig.cas.client.validation.Saml11TicketValidationFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.util.CollectionUtils;
import org.springframework.util.StringUtils;
import javax.servlet.Filter;
import static net.unicon.cas.client.configuration.EnableCasClient.ValidationType.CAS;
import static net.unicon.cas.client.configuration.EnableCasClient.ValidationType.CAS3;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Configuration class providing default CAS client infrastructure filters.
* This configuration facility is typically imported into Spring‘s Application Context via
* {@link net.unicon.cas.client.configuration.EnableCasClient EnableCasClient} meta annotation.
*
* @author Dmitriy Kopylenko
* @see net.unicon.cas.client.configuration.EnableCasClient
* @since 1.0.0
*/
@Configuration
@EnableConfigurationProperties(CasClientConfigurationProperties.class)
public class CasClientConfiguration {
@Autowired
CasClientConfigurationProperties configProps;
private CasClientConfigurer casClientConfigurer;
@Bean
@ConditionalOnProperty(prefix = “cas“ name = “skipTicketValidation“ havingValue = “false“ matchIfMissing = true)
public FilterRegistrationBean casValidationFilter() {
final FilterRegistrationBean validationFilter = new FilterRegistrationBean();
final Filter targetCasValidationFilter;
switch (this.configProps.getValidationType()) {
case CAS:
targetCasValidationFilter = new Cas20ProxyReceivingTicketValidationFilter();
break;
case CAS3:
targetCasValidationFilter = new Cas30ProxyReceivingTicketValidationFilter();
break;
case SAML:
targetCasValidationFilter = new Saml11TicketValidationFilter();
break;
default:
throw new IllegalStateException(“Unknown CAS validation type“);
}
initFilter(validationFilter
targetCasValidationFilter
1
constructInitParams(“
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-05-13 13:50 cas-client-autoconfig-support-master\
文件 127 2019-05-13 13:50 cas-client-autoconfig-support-master\.gitignore
文件 11325 2019-05-13 13:50 cas-client-autoconfig-support-master\LICENSE
文件 3282 2019-05-13 13:50 cas-client-autoconfig-support-master\README.md
文件 3468 2019-05-13 13:50 cas-client-autoconfig-support-master\build.gradle
文件 1429 2019-05-13 13:50 cas-client-autoconfig-support-master\changelog.txt
文件 391 2019-05-13 13:50 cas-client-autoconfig-support-master\gradle.properties
目录 0 2019-05-13 13:50 cas-client-autoconfig-support-master\gradle\
目录 0 2019-05-13 13:50 cas-client-autoconfig-support-master\gradle\wrapper\
文件 54413 2019-05-13 13:50 cas-client-autoconfig-support-master\gradle\wrapper\gradle-wrapper.jar
文件 233 2019-05-13 13:50 cas-client-autoconfig-support-master\gradle\wrapper\gradle-wrapper.properties
文件 5296 2019-05-13 13:50 cas-client-autoconfig-support-master\gradlew
文件 2260 2019-05-13 13:50 cas-client-autoconfig-support-master\gradlew.bat
目录 0 2019-05-13 13:50 cas-client-autoconfig-support-master\src\
目录 0 2019-05-13 13:50 cas-client-autoconfig-support-master\src\main\
目录 0 2019-05-13 13:50 cas-client-autoconfig-support-master\src\main\java\
目录 0 2019-05-13 13:50 cas-client-autoconfig-support-master\src\main\java\net\
目录 0 2019-05-13 13:50 cas-client-autoconfig-support-master\src\main\java\net\unicon\
目录 0 2019-05-13 13:50 cas-client-autoconfig-support-master\src\main\java\net\unicon\cas\
目录 0 2019-05-13 13:50 cas-client-autoconfig-support-master\src\main\java\net\unicon\cas\client\
目录 0 2019-05-13 13:50 cas-client-autoconfig-support-master\src\main\java\net\unicon\cas\client\configuration\
文件 8534 2019-05-13 13:50 cas-client-autoconfig-support-master\src\main\java\net\unicon\cas\client\configuration\CasClientConfiguration.java
文件 6396 2019-05-13 13:50 cas-client-autoconfig-support-master\src\main\java\net\unicon\cas\client\configuration\CasClientConfigurationProperties.java
文件 1690 2019-05-13 13:50 cas-client-autoconfig-support-master\src\main\java\net\unicon\cas\client\configuration\CasClientConfigurer.java
文件 1339 2019-05-13 13:50 cas-client-autoconfig-support-master\src\main\java\net\unicon\cas\client\configuration\CasClientConfigurerAdapter.java
文件 1480 2019-05-13 13:50 cas-client-autoconfig-support-master\src\main\java\net\unicon\cas\client\configuration\EnableCasClient.java
相关资源
- 最完善的免费开源的蓝牙串口助手
- 仿 nrf master control panel的开源BLE调试程
- 搭建开源code review gerrit+git+repo服务器
- 一个开源ERP系统(Java)
- android 开源地图源码—— BigPl
- PhotoView开源框架jar包
- android开源动画库 nineoldandroids-2.4.0.j
- Android rtmp rtsp 推流客户端.zip
- 类似 LBE平行空间 的项目,实现App多开
- 手机视频会议视频教学平台ovmeet.zip
- Android 开源之StickyHeaderListView 标题渐变
- Java获取MIME开源类库jmimemagic-0.1.2.jar
- 固定资产管理系统开源
- fullcalendar-2.2.3.zip
- 姓名预测,个性匹配与运势android开源
- java web开源项目在线考试系统
- HighlightTextEditor android HighlightTextEdito
- ANDROID 下nrf开发 开源源码。android4.3或
- 京东开放平台.NET版SDKJdSdk.NET.zip
- pdi-ce-8.2kettle 8.2安装软体
- JAVA上百以及开源项目源代码
- JAVA上百以及开源项目
- 开源社区android源码
- 国外开源音乐播放器
- Android开源文件管理器FileManager FileEx
- Emmagee.apk 手机性能监控工具开源
- Java使用开源Rxtx实现串口通讯 串口开
- jnitrace一个Frida模块,跟踪Android应用程
- E4A类库 ESP8266 SmartConfig UDP广播 一键配
- android开源日历很经典
评论
共有 条评论