Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
Set secure processing feature on SchemaFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
coheigea committed Nov 23, 2018
1 parent 1123b98 commit ee82e76
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -48,6 +48,7 @@ class DecorationParser {
jaxbContext = JAXBContext.newInstance(ServiceDecorationsType.class.getPackage().getName(),
this.getClass().getClassLoader());
SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
schemaFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, Boolean.TRUE);
URL resource = getClass().getResource("/service-decoration.xsd");
schema = schemaFactory.newSchema(resource);
} catch (Exception e) {
Expand Down

0 comments on commit ee82e76

Please sign in to comment.