// }
// }
// }
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();
}
}