Package org.jasig.cas.client.validation

Examples of org.jasig.cas.client.validation.Cas20ServiceTicketValidator$CustomAttributeHandler


  /** Implementation of the proxy retriever. */
  private ProxyRetriever proxyRetriever;

  public TicketValidator getObject() throws Exception {
    Cas20ServiceTicketValidator validator = new Cas20ServiceTicketValidator(config.getCasServer());
    if (null != proxyGrantingTicketStorage) {
      validator.setProxyGrantingTicketStorage(proxyGrantingTicketStorage);
    }
    if (null != config.getProxyReceptor()) {
      validator.setProxyCallbackUrl(config.getProxyCallbackUrl());
    }
    if (null != proxyCallbackUrl) {
      validator.setProxyCallbackUrl(proxyCallbackUrl);
    }
    if (null != proxyRetriever) {
      validator.setProxyRetriever(proxyRetriever);
    }
    validator.setRenew(config.isRenew());
    return validator;
  }
View Full Code Here


    }

    @Bean
    public Filter casValidationFilter() {
        final Cas20ProxyReceivingTicketValidationFilter casValidationFilter = new Cas20ProxyReceivingTicketValidationFilter();
        final Cas20ServiceTicketValidator ticketValidator = new Cas20ServiceTicketValidator(serverUrlPrefix);
        casValidationFilter.setTicketValidator(ticketValidator);
        casValidationFilter.setServerName(serverName);
        return casValidationFilter;
    }
View Full Code Here

  /** Implementation of the proxy retriever. */
  private ProxyRetriever proxyRetriever;

  public TicketValidator getObject() throws Exception {
    Cas20ServiceTicketValidator validator = new Cas20ServiceTicketValidator(
        config.getCasServer());
    if (null != proxyGrantingTicketStorage) {
      validator.setProxyGrantingTicketStorage(proxyGrantingTicketStorage);
    }
    if (null != config.getProxyReceptor()) {
      validator.setProxyCallbackUrl(config.getProxyCallbackUrl());
    }
    if (null != proxyCallbackUrl) {
      validator.setProxyCallbackUrl(proxyCallbackUrl);
    }
    if (null != proxyRetriever) {
      validator.setProxyRetriever(proxyRetriever);
    }
    validator.setRenew(config.isRenew());
    return validator;
  }
View Full Code Here

            this.casLoginUrl = this.casPrefixUrl + "login";
        }
        if (this.casProtocol == CasProtocol.CAS10) {
            this.ticketValidator = new Cas10TicketValidator(this.casPrefixUrl);
        } else if (this.casProtocol == CasProtocol.CAS20) {
            this.ticketValidator = new Cas20ServiceTicketValidator(this.casPrefixUrl);
            if (this.casProxyReceptor != null) {
                final Cas20ServiceTicketValidator cas20ServiceTicketValidator = (Cas20ServiceTicketValidator) this.ticketValidator;
                cas20ServiceTicketValidator.setProxyCallbackUrl(this.casProxyReceptor.getCallbackUrl());
                cas20ServiceTicketValidator.setProxyGrantingTicketStorage(this.casProxyReceptor
                        .getProxyGrantingTicketStorage());
            }
        } else if (this.casProtocol == CasProtocol.CAS20_PROXY) {
            this.ticketValidator = new Cas20ProxyTicketValidator(this.casPrefixUrl);
            final Cas20ProxyTicketValidator cas20ProxyTicketValidator = (Cas20ProxyTicketValidator) this.ticketValidator;
View Full Code Here

        return NAME;
    }

    public void start() throws LifecycleException {
        super.start();
        this.ticketValidator = new Cas20ServiceTicketValidator(getCasServerUrlPrefix());
        if (getEncoding() != null) {
            this.ticketValidator.setEncoding(getEncoding());
        }
        this.ticketValidator.setProxyCallbackUrl(getProxyCallbackUrl());
        this.ticketValidator.setProxyGrantingTicketStorage(ProxyCallbackValve.getProxyGrantingTicketStorage());
View Full Code Here

        return NAME;
    }

    protected void startInternal() throws LifecycleException {
        super.startInternal();
        this.ticketValidator = new Cas20ServiceTicketValidator(getCasServerUrlPrefix());
        if (getEncoding() != null) {
            this.ticketValidator.setEncoding(getEncoding());
        }
        this.ticketValidator.setProxyCallbackUrl(getProxyCallbackUrl());
        this.ticketValidator.setProxyGrantingTicketStorage(ProxyCallbackValve.getProxyGrantingTicketStorage());
View Full Code Here

TOP

Related Classes of org.jasig.cas.client.validation.Cas20ServiceTicketValidator$CustomAttributeHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.