本文整理汇总了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);
}
示例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;
}
示例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;
}
示例4: serviceProperties
import org.springframework.security.cas.ServiceProperties; //导入依赖的package包/类
@Bean
public ServiceProperties serviceProperties(){
return new ServiceProperties(){{
setService(calendarServiceLogin);
setAuthenticateAllArtifacts(true);
}};
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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);
}
示例14: DynamicCasSecurityConfiguration
import org.springframework.security.cas.ServiceProperties; //导入依赖的package包/类
DynamicCasSecurityConfiguration(CasSecurityProperties casSecurityProperties,
ServiceProperties serviceProperties) {
super(casSecurityProperties, serviceProperties);
}
示例15: serviceProperties
import org.springframework.security.cas.ServiceProperties; //导入依赖的package包/类
@Bean
public ServiceProperties serviceProperties(){
return new ServiceProperties(){{
setService(calendarServiceLogin);
}};
}