boolean ltpaTokenFound = false;
java.util.Map<java.lang.String, java.lang.Object> cookieMap = ctx.getRequestCookieMap();
if(cookieMap.containsKey("LtpaToken")) {
javax.servlet.http.Cookie cookie = (javax.servlet.http.Cookie) cookieMap.get("LtpaToken");
BasicClientCookie2 cookie1 = new BasicClientCookie2(cookie.getName(), getRawCookieValue(cookie, ctx.getHttpRequest()));
if(cookie.getDomain()!=null) {
cookie1.setDomain(cookie.getDomain());
}
else {
cookie1.setDomain(_domain);
}
if(cookie.getPath()!=null) {
cookie1.setPath(cookie.getPath());
}
else {
cookie1.setPath("/");
}
cookieStore.addCookie(cookie1);
ltpaTokenFound = true;
}
if(cookieMap.containsKey("LtpaToken2")) {
javax.servlet.http.Cookie cookie = (javax.servlet.http.Cookie) cookieMap.get("LtpaToken2");
BasicClientCookie2 cookie2 = new BasicClientCookie2(cookie.getName(), getRawCookieValue(cookie, ctx.getHttpRequest()));
if(cookie.getDomain()!=null) {
cookie2.setDomain(cookie.getDomain());
}
else {
cookie2.setDomain(_domain);
}
if(cookie.getPath()!=null) {
cookie2.setPath(cookie.getPath());
}
else {
cookie2.setPath("/");
}
cookieStore.addCookie(cookie2);
ltpaTokenFound = true;
}