String idValueOfAssertion,
KeyPair keypair,
String referenceURI) throws JAXBException, ParserConfigurationException, XPathException, TransformerFactoryConfigurationError, TransformerException, GeneralSecurityException, MarshalException, XMLSignatureException
{
SAML2Response saml2Response = new SAML2Response();
Document doc = saml2Response.convert(response);
return sign(doc,idValueOfAssertion, keypair, referenceURI);
}
/**