}
protected void sendRequestToIDP(AuthnRequestType authnRequest, String relayState, Response response)
throws IOException, SAXException, JAXBException,GeneralSecurityException
{
SAML2Request saml2Request = new SAML2Request();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
saml2Request.marshall(authnRequest, baos);
String samlMessage = PostBindingUtil.base64Encode(baos.toString());
String destination = authnRequest.getDestination();
PostBindingUtil.sendPost(new DestinationInfoHolder(destination, samlMessage, relayState),
null,response, true);