/** * Send the payload via HTTP/REDIRECT * @param url the redirect url * @param response {@link javax.servlet.http.HttpServletResponse} * @throws IOException */ public void sendRedirectForRequestor(String url, HttpServletResponse response) throws IOException { HTTPRedirectUtil.sendRedirectForRequestor(url, response); }
/** * Send the payload via HTTP/REDIRECT * @param destination the destination url * @param response {@link javax.servlet.http.HttpServletResponse} * @throws IOException */ public void sendRedirectForResponder(String destination, HttpServletResponse response) throws IOException { HTTPRedirectUtil.sendRedirectForResponder(destination,response); } }
/** * @see #sendRedirectForRequestor(String, HttpServletResponse) */ public static void sendRedirectForResponder(String destination, HttpServletResponse response) throws IOException { common(destination, response); response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate,private"); sendRedirect(response, destination); }
/** * @see #sendRedirectForRequestor(String, HttpServletResponse) */ public static void sendRedirectForResponder(String destination, HttpServletResponse response) throws IOException { common(destination, response); response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate,private"); sendRedirect(response, destination); }
/** * Send the payload via HTTP/REDIRECT * @param url the redirect url * @param response {@link javax.servlet.http.HttpServletResponse} * @throws IOException */ public void sendRedirectForRequestor(String url, HttpServletResponse response) throws IOException { HTTPRedirectUtil.sendRedirectForRequestor(url, response); }
/** * Send the payload via HTTP/REDIRECT * @param destination the destination url * @param response {@link javax.servlet.http.HttpServletResponse} * @throws IOException */ public void sendRedirectForResponder(String destination, HttpServletResponse response) throws IOException { HTTPRedirectUtil.sendRedirectForResponder(destination,response); } }
/** * @see #sendRedirectForRequestor(String, HttpServletResponse) */ public static void sendRedirectForResponder(String destination, HttpServletResponse response) throws IOException { common(destination, response); response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate,private"); sendRedirect(response,destination); }
protected void sendHttpRedirectRequest(String destination, Document samlDocument, String relayState, HttpServletResponse response, boolean willSendRequest, String destinationQueryStringWithSignature) throws IOException, ProcessingException, ConfigurationException { String destinationQueryString = null; // We already have queryString with signature from SAML2SignatureGenerationHandler if (destinationQueryStringWithSignature != null) { destinationQueryString = destinationQueryStringWithSignature; } else { String samlMessage = DocumentUtil.getDocumentAsString(samlDocument); String base64Request = RedirectBindingUtil.deflateBase64URLEncode(samlMessage.getBytes("UTF-8")); destinationQueryString = RedirectBindingUtil.getDestinationQueryString(base64Request, relayState, willSendRequest); } RedirectBindingUtil.RedirectBindingUtilDestHolder holder = new RedirectBindingUtil.RedirectBindingUtilDestHolder(); holder.setDestination(destination).setDestinationQueryString(destinationQueryString); HTTPRedirectUtil.sendRedirectForRequestor(RedirectBindingUtil.getDestinationURL(holder), response); }
if (trace) log.trace("Redirecting to=" + finalDest); HTTPRedirectUtil.sendRedirectForResponder(finalDest, response);
/** * @see #sendRedirectForRequestor(String, HttpServletResponse) */ public static void sendRedirectForResponder(String destination, HttpServletResponse response) throws IOException { common(destination, response); response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate,private"); sendRedirect(response, destination); }
protected void sendHttpRedirectRequest(String destination, Document samlDocument, String relayState, HttpServletResponse response, boolean willSendRequest, String destinationQueryStringWithSignature) throws IOException, ProcessingException, ConfigurationException { String destinationQueryString = null; // We already have queryString with signature from SAML2SignatureGenerationHandler if (destinationQueryStringWithSignature != null) { destinationQueryString = destinationQueryStringWithSignature; } else { String samlMessage = DocumentUtil.getDocumentAsString(samlDocument); String base64Request = RedirectBindingUtil.deflateBase64URLEncode(samlMessage.getBytes("UTF-8")); destinationQueryString = RedirectBindingUtil.getDestinationQueryString(base64Request, relayState, willSendRequest); } RedirectBindingUtil.RedirectBindingUtilDestHolder holder = new RedirectBindingUtil.RedirectBindingUtilDestHolder(); holder.setDestination(destination).setDestinationQueryString(destinationQueryString); HTTPRedirectUtil.sendRedirectForRequestor(RedirectBindingUtil.getDestinationURL(holder), response); }
if (trace) log.trace("Redirecting to=" + finalDest); HTTPRedirectUtil.sendRedirectForResponder(finalDest, response);
/** * Send the response to the redirected destination while adding the character encoding of "UTF-8" as well as adding headers * for cache-control and Pragma * * @param destination Destination URI where the response needs to redirect * @param response HttpServletResponse * @throws IOException */ public static void sendRedirectForRequestor(String destination, HttpServletResponse response) throws IOException { common(destination, response); response.setHeader("Cache-Control", "no-cache, no-store"); sendRedirect(response, destination); }
/** * <p> Sends a HTTP Redirect request to the IDP. </p> * * @param destination * @param relayState * @param response * @param willSendRequest * @param destinationQueryStringWithSignature * * @throws IOException * @throws ConfigurationException * @throws ProcessingException */ protected void sendHttpRedirectRequest(String destination, Document samlDocument, String relayState, Response response, boolean willSendRequest, String destinationQueryStringWithSignature) throws IOException, ProcessingException, ConfigurationException { String destinationQueryString = null; // We already have queryString with signature from SAML2SignatureGenerationHandler if (destinationQueryStringWithSignature != null) { destinationQueryString = destinationQueryStringWithSignature; } else { String samlMessage = DocumentUtil.getDocumentAsString(samlDocument); String base64Request = RedirectBindingUtil.deflateBase64URLEncode(samlMessage.getBytes("UTF-8")); destinationQueryString = RedirectBindingUtil.getDestinationQueryString(base64Request, relayState, willSendRequest); } RedirectBindingUtilDestHolder holder = new RedirectBindingUtilDestHolder(); holder.setDestination(destination).setDestinationQueryString(destinationQueryString); HTTPRedirectUtil.sendRedirectForRequestor(RedirectBindingUtil.getDestinationURL(holder), response); }
HTTPRedirectUtil.sendRedirectForResponder(finalDest, response);
/** * @see #sendRedirectForRequestor(String, HttpServletResponse) */ public static void sendRedirectForResponder(String destination, HttpServletResponse response) throws IOException { common(destination, response); response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate,private"); sendRedirect(response,destination); }
/** * <p> Sends a HTTP Redirect request to the IDP. </p> * * @param destination * @param relayState * @param response * @param willSendRequest * @param destinationQueryStringWithSignature * * @throws IOException * @throws ConfigurationException * @throws ProcessingException */ protected void sendHttpRedirectRequest(String destination, Document samlDocument, String relayState, Response response, boolean willSendRequest, String destinationQueryStringWithSignature) throws IOException, ProcessingException, ConfigurationException { String destinationQueryString = null; // We already have queryString with signature from SAML2SignatureGenerationHandler if (destinationQueryStringWithSignature != null) { destinationQueryString = destinationQueryStringWithSignature; } else { String samlMessage = DocumentUtil.getDocumentAsString(samlDocument); String base64Request = RedirectBindingUtil.deflateBase64URLEncode(samlMessage.getBytes("UTF-8")); destinationQueryString = RedirectBindingUtil.getDestinationQueryString(base64Request, relayState, willSendRequest); } RedirectBindingUtilDestHolder holder = new RedirectBindingUtilDestHolder(); holder.setDestination(destination).setDestinationQueryString(destinationQueryString); HTTPRedirectUtil.sendRedirectForRequestor(RedirectBindingUtil.getDestinationURL(holder), response); }
HTTPRedirectUtil.sendRedirectForResponder(finalDest, response); } else { if (logger.isTraceEnabled()) {
/** * Send the response to the redirected destination while adding the character encoding of "UTF-8" as well as adding * headers * for cache-control and Pragma * * @param destination Destination URI where the response needs to redirect * @param response HttpServletResponse * * @throws IOException */ public static void sendRedirectForRequestor(String destination, HttpServletResponse response) throws IOException { common(destination, response); response.setHeader("Cache-Control", "no-cache, no-store"); sendRedirect(response, destination); }
/** * <p> Sends a HTTP Redirect request to the IDP. </p> * * @param destination * @param relayState * @param response * @param willSendRequest * @param destinationQueryStringWithSignature * * @throws IOException * @throws ConfigurationException * @throws ProcessingException */ protected void sendHttpRedirectRequest(String destination, Document samlDocument, String relayState, Response response, boolean willSendRequest, String destinationQueryStringWithSignature) throws IOException, ProcessingException, ConfigurationException { String destinationQueryString = null; // We already have queryString with signature from SAML2SignatureGenerationHandler if (destinationQueryStringWithSignature != null) { destinationQueryString = destinationQueryStringWithSignature; } else { String samlMessage = DocumentUtil.getDocumentAsString(samlDocument); String base64Request = RedirectBindingUtil.deflateBase64URLEncode(samlMessage.getBytes("UTF-8")); destinationQueryString = RedirectBindingUtil.getDestinationQueryString(base64Request, relayState, willSendRequest); } RedirectBindingUtilDestHolder holder = new RedirectBindingUtilDestHolder(); holder.setDestination(destination).setDestinationQueryString(destinationQueryString); HTTPRedirectUtil.sendRedirectForRequestor(RedirectBindingUtil.getDestinationURL(holder), response); }