• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java TicketValidator类的典型用法和代码示例

java 2次浏览

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

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

示例1: build

点赞 3

import org.jasig.cas.client.validation.TicketValidator; //导入依赖的package包/类
@Override
public TicketValidator build() {
    Cas10TicketValidator ticketValidator = new Cas10TicketValidator(casServerUrlPrefix);
    if (StringUtils.hasText(proxyCallbackUrl)) {
        logger.warn(OMISSION_MESSAGE_TEMPLATE, "proxyCallbackUrl");
    }
    if (proxyGrantingTicketStorage !=  null) {
        logger.warn(OMISSION_MESSAGE_TEMPLATE, "proxyGrantingTicketStorage");
    }
    if (proxyRetriever != null) {
        logger.warn(OMISSION_MESSAGE_TEMPLATE, "proxyRetriever");
    }
    if (proxyChainsValidation != null) {
        logger.warn(OMISSION_MESSAGE_TEMPLATE, "proxyChainsValidation");
    }
    if (proxyChains != null) {
        logger.warn(OMISSION_MESSAGE_TEMPLATE, "proxyChains");
    }
    if (allowEmptyProxyChain != null) {
        logger.warn(OMISSION_MESSAGE_TEMPLATE, "allowEmptyProxyChain");
    }
    super.configure(ticketValidator);
    return ticketValidator;
}
 

开发者ID:kakawait,
项目名称:cas-security-spring-boot-starter,
代码行数:25,
代码来源:CasTicketValidatorBuilder.java

示例2: ticketValidator

点赞 2

import org.jasig.cas.client.validation.TicketValidator; //导入依赖的package包/类
@Bean
TicketValidator ticketValidator(List<CasSecurityConfigurer> casSecurityConfigurers) {
    URI baseUrl = casSecurityProperties.getServer().getValidationBaseUrl() != null
            ? casSecurityProperties.getServer().getValidationBaseUrl()
            : casSecurityProperties.getServer().getBaseUrl();
    CasTicketValidatorBuilder builder = new CasTicketValidatorBuilder(baseUrl.toASCIIString());
    casSecurityConfigurers.forEach(c -> c.configure(builder));
    return builder.build();
}
 

开发者ID:kakawait,
项目名称:cas-security-spring-boot-starter,
代码行数:10,
代码来源:CasTicketValidatorConfiguration.java

示例3: CasHttpSecurityConfigurerAdapter

点赞 2

import org.jasig.cas.client.validation.TicketValidator; //导入依赖的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

示例4: CasRestAuthenticator

点赞 2

import org.jasig.cas.client.validation.TicketValidator; //导入依赖的package包/类
public CasRestAuthenticator(final String casServerPrefixUrl, final String casRestUrl, final TicketValidator ticketValidator) {
    this.casServerPrefixUrl = casServerPrefixUrl;
    this.casRestUrl = casRestUrl;
    this.ticketValidator = ticketValidator;
}
 

开发者ID:yaochi,
项目名称:pac4j-plus,
代码行数:6,
代码来源:CasRestAuthenticator.java

示例5: getTicketValidator

点赞 2

import org.jasig.cas.client.validation.TicketValidator; //导入依赖的package包/类
public TicketValidator getTicketValidator() {
    return ticketValidator;
}
 

开发者ID:yaochi,
项目名称:pac4j-plus,
代码行数:4,
代码来源:CasRestAuthenticator.java

示例6: setTicketValidator

点赞 2

import org.jasig.cas.client.validation.TicketValidator; //导入依赖的package包/类
public void setTicketValidator(TicketValidator ticketValidator) {
    this.ticketValidator = ticketValidator;
}
 

开发者ID:yaochi,
项目名称:pac4j-plus,
代码行数:4,
代码来源:CasRestAuthenticator.java

示例7: createTicketValidator

点赞 2

import org.jasig.cas.client.validation.TicketValidator; //导入依赖的package包/类
/**
 * 重载createTicketValidator方法是为了可以自定义TicketValidator
 */
@Override
protected TicketValidator createTicketValidator() {
	return ticketValidator == null ? super.createTicketValidator() : ticketValidator;
   }
 

开发者ID:easycodebox,
项目名称:easycode,
代码行数:8,
代码来源:DefaultCasRealm.java

示例8: getTicketValidator

点赞 2

import org.jasig.cas.client.validation.TicketValidator; //导入依赖的package包/类
public TicketValidator getTicketValidator() {
	return ticketValidator;
}
 

开发者ID:easycodebox,
项目名称:easycode,
代码行数:4,
代码来源:DefaultCasRealm.java

示例9: setTicketValidator

点赞 2

import org.jasig.cas.client.validation.TicketValidator; //导入依赖的package包/类
public void setTicketValidator(TicketValidator ticketValidator) {
	this.ticketValidator = ticketValidator;
}
 

开发者ID:easycodebox,
项目名称:easycode,
代码行数:4,
代码来源:DefaultCasRealm.java

示例10: getTicketValidator

点赞 2

import org.jasig.cas.client.validation.TicketValidator; //导入依赖的package包/类
protected TicketValidator getTicketValidator() {
    return ticketValidator;
}
 

开发者ID:youngor,
项目名称:openclouddb,
代码行数:4,
代码来源:CasAuthenticationProvider.java

示例11: setTicketValidator

点赞 2

import org.jasig.cas.client.validation.TicketValidator; //导入依赖的package包/类
public void setTicketValidator(final TicketValidator ticketValidator) {
    this.ticketValidator = ticketValidator;
}
 

开发者ID:youngor,
项目名称:openclouddb,
代码行数:4,
代码来源:CasAuthenticationProvider.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)