/** * Send the payload via HTTP/POST * @param destinationHolder {@link org.picketlink.identity.federation.core.saml.v2.holders.DestinationInfoHolder} holds info on the destination * @param response {@link javax.servlet.http.HttpServletResponse} * @param willSendRequest whether it is a SAML request or response so that the page title can be set * @throws IOException */ public void sendPost(DestinationInfoHolder destinationHolder,HttpServletResponse response, boolean willSendRequest) throws IOException{ PostBindingUtil.sendPost(destinationHolder, response, willSendRequest); }
private static String getResponseRedirectURLWithSignature(String urlEncodedResponse, String urlEncodedRelayState, byte[] signature, String sigAlgo) throws IOException { return getRedirectURLWithSignature(GeneralConstants.SAML_RESPONSE_KEY, urlEncodedResponse, urlEncodedRelayState, signature, sigAlgo); }
private InputStream parseSAMLRequestRedirectBinding(String samlMessage) { InputStream is; is = RedirectBindingUtil.base64DeflateDecode(samlMessage); return is; }
/** * From the query string that contains key/value pairs, get the value of a key <b>Note:</b> if the token is null, a null * value is returned * * @param queryString * @param token * @return */ public static String getTokenValue(String queryString, String token) { return getTokenValue(getToken(queryString, token)); }
/** * 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); }
public AbstractSPFormAuthenticator() { super(); ServerDetector detector = new ServerDetector(); jbossEnv = detector.isJboss(); }
/** * 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); } }
private InputStream parseSAMLRequestRedirectBinding(String samlMessage) { InputStream is; is = RedirectBindingUtil.base64DeflateDecode(samlMessage); return is; }
/** * From the query string that contains key/value pairs, get the value of a key * <b>Note:</b> if the token is null, a null value is returned * @param queryString * @param token * @return */ public static String getTokenValue(String queryString, String token) { return getTokenValue(getToken(queryString, token)); }
/** * Send the payload via HTTP/POST * @param destinationHolder {@link org.picketlink.identity.federation.core.saml.v2.holders.DestinationInfoHolder} holds info on the destination * @param response {@link javax.servlet.http.HttpServletResponse} * @param willSendRequest whether it is a SAML request or response so that the page title can be set * @throws IOException */ public void sendPost(DestinationInfoHolder destinationHolder,HttpServletResponse response, boolean willSendRequest) throws IOException{ PostBindingUtil.sendPost(destinationHolder, response, willSendRequest); }
private static String getResponseRedirectURLWithSignature(String urlEncodedResponse, String urlEncodedRelayState, byte[] signature, String sigAlgo) throws IOException { return getRedirectURLWithSignature(GeneralConstants.SAML_RESPONSE_KEY, urlEncodedResponse, urlEncodedRelayState, signature, sigAlgo); }
public AbstractSPFormAuthenticator() { super(); ServerDetector detector = new ServerDetector(); jbossEnv = detector.isJboss(); }
/** * 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); } }
private InputStream parseSAMLRequestRedirectBinding(String samlMessage) { InputStream is; is = RedirectBindingUtil.base64DeflateDecode(samlMessage); return is; }
private static String getRequestRedirectURLWithSignature(String urlEncodedRequest, String urlEncodedRelayState, byte[] signature, String sigAlgo) throws IOException { return getRedirectURLWithSignature(GeneralConstants.SAML_REQUEST_KEY, urlEncodedRequest, urlEncodedRelayState, signature, sigAlgo); }
private static String getRequestRedirectURLWithSignature(String urlEncodedRequest, String urlEncodedRelayState, byte[] signature, String sigAlgo) throws IOException { return getRedirectURLWithSignature(GeneralConstants.SAML_REQUEST_KEY, urlEncodedRequest, urlEncodedRelayState, signature, sigAlgo); }
private static String getResponseRedirectURLWithSignature(String urlEncodedResponse, String urlEncodedRelayState, byte[] signature, String sigAlgo) throws IOException { return getRedirectURLWithSignature(GeneralConstants.SAML_RESPONSE_KEY, urlEncodedResponse, urlEncodedRelayState, signature, sigAlgo); }
private static String getResponseRedirectURLWithSignature(String urlEncodedResponse, String urlEncodedRelayState, byte[] signature, String sigAlgo) throws IOException { return getRedirectURLWithSignature(GeneralConstants.SAML_RESPONSE_KEY, urlEncodedResponse, urlEncodedRelayState, signature, sigAlgo); }
private static String getRequestRedirectURLWithSignature(String urlEncodedRequest, String urlEncodedRelayState, byte[] signature, String sigAlgo) throws IOException { return getRedirectURLWithSignature(GeneralConstants.SAML_REQUEST_KEY, urlEncodedRequest, urlEncodedRelayState, signature, sigAlgo); }
private static String getResponseRedirectURLWithSignature(String urlEncodedResponse, String urlEncodedRelayState, byte[] signature, String sigAlgo) throws IOException { return getRedirectURLWithSignature(GeneralConstants.SAML_RESPONSE_KEY, urlEncodedResponse, urlEncodedRelayState, signature, sigAlgo); }