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


Java ServiceProperties类代码示例

本文整理汇总了Java中org.springframework.security.cas.ServiceProperties的典型用法代码示例。如果您正苦于以下问题:Java ServiceProperties类的具体用法?Java ServiceProperties怎么用?Java ServiceProperties使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ServiceProperties类属于org.springframework.security.cas包,在下文中一共展示了ServiceProperties类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: CasHttpSecurityConfigurerAdapter

import org.springframework.security.cas.ServiceProperties; //导入依赖的package包/类
public CasHttpSecurityConfigurerAdapter(List<CasSecurityConfigurer> configurers,
        SecurityProperties securityProperties, CasSecurityProperties casSecurityProperties,
        CasAuthenticationEntryPoint authenticationEntryPoint, ServiceProperties serviceProperties,
        TicketValidator ticketValidator, ObjectPostProcessor<Object> objectPostProcessor) {
    this.configurers = configurers;
    this.securityProperties = securityProperties;
    this.casSecurityProperties = casSecurityProperties;
    this.authenticationEntryPoint = authenticationEntryPoint;
    this.serviceProperties = serviceProperties;
    this.ticketValidator = ticketValidator;
    authenticationManagerBuilder = new AuthenticationManagerBuilder(objectPostProcessor);
}
 
开发者ID:kakawait,项目名称:cas-security-spring-boot-starter,代码行数:13,代码来源:CasHttpSecurityConfigurer.java

示例2: laxServiceProperties

import org.springframework.security.cas.ServiceProperties; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(ServiceProperties.class)
@ConditionalOnProperty(value = "security.cas.service.resolution-mode", havingValue = "dynamic")
ServiceProperties laxServiceProperties() {
    LaxServiceProperties serviceProperties = new LaxServiceProperties();
    serviceProperties.setAuthenticateAllArtifacts(true);
    return serviceProperties;
}
 
开发者ID:kakawait,项目名称:cas-security-spring-boot-starter,代码行数:9,代码来源:CasSecurityAutoConfiguration.java

示例3: AbstractCasSecurityConfiguration

import org.springframework.security.cas.ServiceProperties; //导入依赖的package包/类
AbstractCasSecurityConfiguration(CasSecurityProperties casSecurityProperties,
        ServiceProperties serviceProperties) {
    serverLoginUrl = UriComponentsBuilder
            .fromUri(casSecurityProperties.getServer().getBaseUrl())
            .path(casSecurityProperties.getServer().getPaths().getLogin())
            .toUriString();
    this.casSecurityProperties = casSecurityProperties;
    this.serviceProperties = serviceProperties;
}
 
开发者ID:kakawait,项目名称:cas-security-spring-boot-starter,代码行数:10,代码来源:CasSecurityAutoConfiguration.java

示例4: serviceProperties

import org.springframework.security.cas.ServiceProperties; //导入依赖的package包/类
@Bean
public ServiceProperties serviceProperties(){
    return new ServiceProperties(){{
        setService(calendarServiceLogin);
        setAuthenticateAllArtifacts(true);
    }};
}
 
开发者ID:PacktPublishing,项目名称:Spring-Security-Third-Edition,代码行数:8,代码来源:CasConfig.java

示例5: serviceProperties

import org.springframework.security.cas.ServiceProperties; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(ServiceProperties.class)
public ServiceProperties serviceProperties(){
	ServiceProperties serviceProps = new ServiceProperties();
	serviceProps.setService(bootSecurityConfig.getCas().getService());
	serviceProps.setSendRenew(bootSecurityConfig.getCas().isSendRenew());
	return serviceProps;
}
 
开发者ID:wayshall,项目名称:onetwo,代码行数:9,代码来源:CasSsoContextConfig.java

示例6: serviceProperties

import org.springframework.security.cas.ServiceProperties; //导入依赖的package包/类
@Bean
public ServiceProperties serviceProperties() {
	ServiceProperties sp = new ServiceProperties();
	sp.setService(env.getRequiredProperty(CAS_SERVICE_URL));
	sp.setSendRenew(false);
	return sp;
}
 
开发者ID:jgribonvald,项目名称:demo-spring-security-cas,代码行数:8,代码来源:SecurityConfiguration.java

示例7: getRedirectUrl

import org.springframework.security.cas.ServiceProperties; //导入依赖的package包/类
protected String getRedirectUrl(final String urlEncodedService, final HttpServletRequest request) {
	ServiceProperties sp = wrappedCasAuthEntryPoint.getServiceProperties();
	String url = CommonUtils.constructRedirectUrl(wrappedCasAuthEntryPoint.getLoginUrl(), sp.getServiceParameter(),
			urlEncodedService, sp.isSendRenew(), false);

	if (request.getRequestURI().endsWith("/logoutcas")) {
		url = url + "&so=yes";
	}

	String account = parseAccount(getSavedRequestRedirectUrl(request));
	if (StringUtils.isEmpty(account)) {
		return url;
	}
	return url + "&account=" + account;
}
 
开发者ID:SmarterApp,项目名称:TechnologyReadinessTool,代码行数:16,代码来源:CasAuthenticationEntryPoint.java

示例8: logout

import org.springframework.security.cas.ServiceProperties; //导入依赖的package包/类
@RequestMapping("/logout")
public void logout(HttpServletRequest request,HttpServletResponse response) throws IOException{
	 HttpSession session = request.getSession(false);
        if (session != null) {
            session.invalidate();
        }
	String loginUrl = (String)RainbowProperties.getProperties(CAS_LOGOUT);
	String serviceUrl = (String)RainbowProperties.getProperties(CLIENT_SERVICE) + "/login";
	if(serviceUrl == null || serviceUrl.length() == 0){
		serviceUrl = "http://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/login";
	}
	ServiceProperties sp = (ServiceProperties)SpringApplicationContext.getBean("serviceProperties");
	String redirectUrl = CommonUtils.constructRedirectUrl(loginUrl, sp.getServiceParameter(), serviceUrl, false, false);
	response.sendRedirect(redirectUrl);
}
 
开发者ID:youngor,项目名称:openclouddb,代码行数:16,代码来源:LogoutAction.java

示例9: casServiceProperties

import org.springframework.security.cas.ServiceProperties; //导入依赖的package包/类
@Bean
public ServiceProperties casServiceProperties() {
	ServiceProperties properties = new ServiceProperties();
	properties.setService(rootUrl + apiPath + "/login/cas");
	properties.setSendRenew(false);

	return properties;
}
 
开发者ID:thm-projects,项目名称:arsnova-backend,代码行数:9,代码来源:SecurityConfig.java

示例10: DefaultProxyCallbackAndServiceAuthenticationDetails

import org.springframework.security.cas.ServiceProperties; //导入依赖的package包/类
DefaultProxyCallbackAndServiceAuthenticationDetails(ServiceProperties serviceProperties, HttpServletRequest context,
        URI proxyCallbackUri) {
    this.serviceProperties = serviceProperties;
    this.context = context;
    this.proxyCallbackUri = proxyCallbackUri;
}
 
开发者ID:kakawait,项目名称:cas-security-spring-boot-starter,代码行数:7,代码来源:DefaultProxyCallbackAndServiceAuthenticationDetails.java

示例11: ProxyCallbackAndServiceAuthenticationDetailsSource

import org.springframework.security.cas.ServiceProperties; //导入依赖的package包/类
public ProxyCallbackAndServiceAuthenticationDetailsSource(ServiceProperties serviceProperties,
        URI proxyCallbackUri) {
    super(serviceProperties);
    this.serviceProperties = serviceProperties;
    this.proxyCallbackUri = proxyCallbackUri;
}
 
开发者ID:kakawait,项目名称:cas-security-spring-boot-starter,代码行数:7,代码来源:ProxyCallbackAndServiceAuthenticationDetailsSource.java

示例12: ProxyCallbackAndServiceAuthenticationDetailsSource

import org.springframework.security.cas.ServiceProperties; //导入依赖的package包/类
public ProxyCallbackAndServiceAuthenticationDetailsSource(ServiceProperties serviceProperties,
        String proxyCallbackPath) {
    super(serviceProperties);
    this.proxyCallbackPath = proxyCallbackPath;
}
 
开发者ID:kakawait,项目名称:cas-security-spring-boot-starter,代码行数:6,代码来源:ProxyCallbackAndServiceAuthenticationDetailsSource.java

示例13: StaticCasSecurityConfiguration

import org.springframework.security.cas.ServiceProperties; //导入依赖的package包/类
public StaticCasSecurityConfiguration(CasSecurityProperties casSecurityProperties,
        ServiceProperties serviceProperties) {
    super(casSecurityProperties, serviceProperties);
}
 
开发者ID:kakawait,项目名称:cas-security-spring-boot-starter,代码行数:5,代码来源:CasSecurityAutoConfiguration.java

示例14: DynamicCasSecurityConfiguration

import org.springframework.security.cas.ServiceProperties; //导入依赖的package包/类
DynamicCasSecurityConfiguration(CasSecurityProperties casSecurityProperties,
        ServiceProperties serviceProperties) {
    super(casSecurityProperties, serviceProperties);
}
 
开发者ID:kakawait,项目名称:cas-security-spring-boot-starter,代码行数:5,代码来源:CasSecurityAutoConfiguration.java

示例15: serviceProperties

import org.springframework.security.cas.ServiceProperties; //导入依赖的package包/类
@Bean
public ServiceProperties serviceProperties(){
    return new ServiceProperties(){{
        setService(calendarServiceLogin);
    }};
}
 
开发者ID:PacktPublishing,项目名称:Spring-Security-Third-Edition,代码行数:7,代码来源:CasConfig.java


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