wso2 / carbon-business-messaging

Apache License 2.0
41 stars 100 forks source link

Use secureDocumentBuilderFactory instead of the DocumentBuilderFactory #719

Closed RusJaI closed 1 year ago

RusJaI commented 1 year ago

Purpose

As per section 2.4 in WSO2 Secure Engineering Guidelines, it requires to use the secure document builder.

DocumentBuilderFactory documentFactory = IdentityUtil.getSecuredDocumentBuilderFactory();

The commit contains the above change.