Package org.gatein.sso.agent.cas

Examples of org.gatein.sso.agent.cas.CASAgent


        String ticket = httpRequest.getParameter("ticket");
        String jossoAssertion = httpRequest.getParameter("josso_assertion_id");

        if (ticket != null && ticket.trim().length() > 0)
        {
            CASAgent casagent = CASAgent.getInstance(this.ssoServerUrl, this.casServiceUrl);
            casagent.setRenewTicket(this.casRenewTicket);
            casagent.validateTicket(httpRequest, ticket);
        }
        else if (jossoAssertion != null && jossoAssertion.trim().length() > 0)
        {
            //the JOSSO Agent. This will need to the new client side JOSSO stack that can run on 5.1.0.GA
            JOSSOAgent.getInstance().validateTicket(httpRequest,httpResponse);
View Full Code Here


    String ticket = httpRequest.getParameter("ticket");
    String jossoAssertion = httpRequest.getParameter("josso_assertion_id");

    if (ticket != null && ticket.trim().length() > 0)
    {
      CASAgent casagent = CASAgent.getInstance(this.ssoServerUrl);
      casagent.setRenewTicket(this.casRenewTicket);
      casagent.validateTicket(httpRequest, ticket);
    }
    else if (jossoAssertion != null && jossoAssertion.trim().length() > 0)
    {
      //the JOSSO Agent. This will need to the new client side JOSSO stack that can run on 5.1.0.GA
      JOSSOAgent.getInstance().validateTicket(httpRequest,httpResponse);
View Full Code Here

    protected CASAgent getCasAgent()
    {
       if (this.casAgent == null)
       {
          CASAgent casAgent = (CASAgent)getExoContainer().getComponentInstanceOfType(CASAgent.class);
          if (casAgent == null)
          {
             throw new IllegalStateException("CASAgent component not provided in PortalContainer");
          }

          casAgent.setCasServerUrl(this.ssoServerUrl);
          casAgent.setCasServiceUrl(this.casServiceUrl);
          casAgent.setRenewTicket(this.casRenewTicket);
          this.casAgent = casAgent;
       }

       return this.casAgent;
    }
View Full Code Here

TOP

Related Classes of org.gatein.sso.agent.cas.CASAgent

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.