File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import java .security .cert .CertificateException ;
66import java .security .cert .X509Certificate ;
77
8+ import javax .xml .XMLConstants ;
89import javax .xml .crypto .dsig .XMLSignature ;
910import javax .xml .crypto .dsig .XMLSignatureFactory ;
1011import javax .xml .crypto .dsig .dom .DOMValidateContext ;
@@ -37,6 +38,7 @@ public Response(AccountSettings accountSettings) throws CertificateException {
3738 public void loadXml (String xml ) throws ParserConfigurationException , SAXException , IOException {
3839 DocumentBuilderFactory fty = DocumentBuilderFactory .newInstance ();
3940 fty .setNamespaceAware (true );
41+ fty .setFeature (XMLConstants .FEATURE_SECURE_PROCESSING , true );
4042 DocumentBuilder builder = fty .newDocumentBuilder ();
4143 ByteArrayInputStream bais = new ByteArrayInputStream (xml .getBytes ());
4244 xmlDoc = builder .parse (bais );
You can’t perform that action at this time.
0 commit comments