Package org.butor.sso

Examples of org.butor.sso.SSOException


  // }
  // }
  // }
  public SSOInfo validate(String ssoId_) throws SSOException {
    if (StringUtil.isEmpty(ssoCheckUrl)) {
      throw new SSOException("Got null/empty ssoUrl");
    }
    if (StringUtil.isEmpty(signInUrl)) {
      throw new SSOException("Got null/empty signInUrl");
    }

    PostMethod method = null;
    try {
      method = buildPost(new NameValuePair[] { new NameValuePair(SSOConstants.SSO_SSO_ID, ssoId_) });
      method.addRequestHeader("Cookie", SSOConstants.SSO_SSO_ID +"=" +ssoId_);
      sendRequest(method);
      return parseReply(method);
    } catch (IOException e) {
      throw new SSOException(e);
    } finally {
      if (method != null) {
        method.releaseConnection();
      }
    }
View Full Code Here


  // }
  // }
  // }
  public SSOInfo validate(String ssoId_) throws SSOException {
    if (StringUtil.isEmpty(ssoCheckUrl)) {
      throw new SSOException("Got null/empty ssoUrl");
    }
    if (StringUtil.isEmpty(signInUrl)) {
      throw new SSOException("Got null/empty signInUrl");
    }

    PostMethod method = null;
    try {
      method = buildPost(new NameValuePair[] { new NameValuePair(SSOConstants.SSO_SSO_ID, ssoId_) });
      method.addRequestHeader("Cookie", SSOConstants.SSO_SSO_ID +"=" +ssoId_);
      sendRequest(method);
      return parseReply(method);
    } catch (IOException e) {
      throw new SSOException(e);
    } finally {
      if (method != null) {
        method.releaseConnection();
      }
    }
View Full Code Here

TOP

Related Classes of org.butor.sso.SSOException

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.