//Let us use the encrypted doc element to decrypt it
return saml2Response.getResponseType(DocumentUtil.getNodeAsStream(decryptedDocumentElement));
}
catch (JAXBException e)
{
throw new ConfigurationException(e);
}
catch (SAXException e)
{
throw new ParsingException(e);
}
catch (TransformerFactoryConfigurationError e)
{
throw new ConfigurationException(e);
}
catch (TransformerException e)
{
throw new ParsingException(e);
}