You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2026/08/28 21:54:34 UTC

(commons-xml) branch main updated (050171a -> 802c472)

This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git


    from 050171a  Rename methods to "secure".
     new 4cc0062  Javadoc: Use "secure" terminology.
     new c4b25bd  Javadoc: Use "secure" terminology.
     new a019d17  Javadoc: Use "secure" terminology.
     new f093566  Javadoc: Use "secure" terminology.
     new e7da733  Javadoc: Use "secure" terminology.
     new 5a9088e  Javadoc: Use "secure" terminology.
     new c44e49c  Javadoc: Use "secure" terminology.
     new ef3a678  Javadoc: Use "secure" terminology.
     new 8744754  Javadoc: Use "secure" terminology.
     new 0426ca8  Javadoc: Use "secure" terminology.
     new 121d8e7  Javadoc: Use "secure" terminology.
     new d4b8741  Javadoc: Use "secure" terminology.
     new 6df7de1  Javadoc: Use "secure" terminology.
     new 5d3af15  Javadoc: Use "secure" terminology.
     new 06e6fe7  Javadoc: Use "secure" terminology.
     new 3ab2744  Javadoc: Use "secure" terminology.
     new 75e1e83  Javadoc: Use "secure" terminology.
     new 82274f6  Javadoc: Use "secure" terminology.
     new 126c8cd  Javadoc: Use "secure" terminology.
     new 8e4b5b1  Javadoc: Use "secure" terminology.
     new 9d64919  Javadoc: Use "secure" terminology.
     new ffc5fce  Javadoc: Use "secure" terminology.
     new f777f21  Javadoc: Use "secure" terminology.
     new 05a0482  Javadoc: Use "secure" terminology.
     new 5c4fdf9  Javadoc: Use "secure" terminology.
     new 805a3d5  Javadoc: Use "secure" terminology.
     new 725cabe  Javadoc: Use "secure" terminology.
     new 7d3fdf3  Javadoc: Use "secure" terminology.
     new 8d56408  Javadoc: Use "secure" terminology.
     new c996773  Javadoc: Use "secure" terminology.
     new 544f5c3  Javadoc: Use "secure" terminology.
     new cf7c251  Javadoc: Use "secure" terminology.
     new 126f9b7  Javadoc: Use "secure" terminology.
     new ccbf0e2  Javadoc: Use "secure" terminology.
     new 7c82c2d  Javadoc: Use "secure" terminology.
     new 802c472  Javadoc: Use "secure" terminology.

The 36 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/maven.yml                        |  2 +-
 AGENTS.md                                          |  2 +-
 README.md                                          |  2 +-
 RELEASE-NOTES.txt                                  | 14 ++---
 pom.xml                                            | 12 ++---
 src/changes/changes.xml                            | 12 ++---
 .../java/org/apache/commons/xml/SaxonProvider.java |  6 +--
 .../commons/xml/SecureDocumentBuilderFactory.java  |  8 +--
 .../org/apache/commons/xml/SecureSAXParser.java    |  4 +-
 .../apache/commons/xml/SecureSAXParserFactory.java |  8 +--
 .../java/org/apache/commons/xml/SecureSchema.java  |  2 +-
 .../apache/commons/xml/SecureSchemaFactory.java    |  8 +--
 .../commons/xml/SecureTransformerFactory.java      | 12 ++---
 .../org/apache/commons/xml/SecureValidator.java    |  2 +-
 .../org/apache/commons/xml/SecureXMLFilter.java    |  2 +-
 .../apache/commons/xml/SecureXMLInputFactory.java  |  4 +-
 .../org/apache/commons/xml/SecureXPathFactory.java |  6 +--
 src/site/markdown/index.md                         | 56 ++++++++++----------
 src/site/markdown/threat_model.md                  | 60 +++++++++++-----------
 .../org/apache/commons/xml/AttackTestSupport.java  |  8 +--
 .../org/apache/commons/xml/BillionLaughsTest.java  |  4 +-
 .../org/apache/commons/xml/DoctypeOnlyTest.java    |  2 +-
 .../commons/xml/SecureFactoriesSmokeTest.java      |  2 +-
 .../apache/commons/xml/TemplatesHandlerTest.java   |  2 +-
 .../apache/commons/xml/TransformerHandlerTest.java |  2 +-
 .../java/org/apache/commons/xml/XIncludeTest.java  | 30 +++++------
 .../java/org/apache/commons/xml/XMLFilterTest.java |  2 +-
 .../apache/commons/xml/XPathInputSourceTest.java   |  2 +-
 28 files changed, 138 insertions(+), 138 deletions(-)


(commons-xml) 35/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 7c82c2d53254ac82a384dd66f1a8a3ae83c43cf5
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:54:23 2026 -0400

    Javadoc: Use "secure" terminology.
---
 .../java/org/apache/commons/xml/XIncludeTest.java  | 26 +++++++++++-----------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/test/java/org/apache/commons/xml/XIncludeTest.java b/src/test/java/org/apache/commons/xml/XIncludeTest.java
index f883ad1..23529bc 100644
--- a/src/test/java/org/apache/commons/xml/XIncludeTest.java
+++ b/src/test/java/org/apache/commons/xml/XIncludeTest.java
@@ -253,10 +253,10 @@ void secureDomWithAllowListResolvesParseXml() throws Exception {
     void secureReaderAllowListResolvesParseXml() throws Exception {
         final String input = xiIncludeXml(REFERENCED_XML, "xml");
 
-        final SAXParserFactory unhardenedFactory = SAXParserFactory.newInstance();
-        unhardenedFactory.setNamespaceAware(true);
-        assumeXIncludeAware(unhardenedFactory);
-        final XMLReader reader = SecureSAXParserFactory.secure(unhardenedFactory.newSAXParser().getXMLReader());
+        final SAXParserFactory unsecuredFactory = SAXParserFactory.newInstance();
+        unsecuredFactory.setNamespaceAware(true);
+        assumeXIncludeAware(unsecuredFactory);
+        final XMLReader reader = SecureSAXParserFactory.secure(unsecuredFactory.newSAXParser().getXMLReader());
         reader.setEntityResolver(new AllowListResolver());
         final String captured = captureCharacters(reader, input);
         assertEquals(RESOLVED_MARKER, captured.trim(),
@@ -268,10 +268,10 @@ void secureReaderAllowListResolvesParseXml() throws Exception {
     void secureReaderBlocksParseText() throws Exception {
         final String input = xiIncludeXml(REFERENCED_TEXT, "text");
 
-        final SAXParserFactory unhardenedFactory = SAXParserFactory.newInstance();
-        unhardenedFactory.setNamespaceAware(true);
-        assumeXIncludeAware(unhardenedFactory);
-        final XMLReader reader = SecureSAXParserFactory.secure(unhardenedFactory.newSAXParser().getXMLReader());
+        final SAXParserFactory unsecuredFactory = SAXParserFactory.newInstance();
+        unsecuredFactory.setNamespaceAware(true);
+        assumeXIncludeAware(unsecuredFactory);
+        final XMLReader reader = SecureSAXParserFactory.secure(unsecuredFactory.newSAXParser().getXMLReader());
         final String captured = captureCharacters(reader, input);
         assertFalse(captured.contains(LEAKED_MARKER),
                 "hardenReader parse=text must resolve the include to empty, not leak; got: " + captured);
@@ -282,11 +282,11 @@ void secureReaderBlocksParseText() throws Exception {
     void secureReaderBlocksParseXml() throws Exception {
         final InputSource input = inputSource(xiIncludeXml(REFERENCED_XML, "xml"));
 
-        // Reader from an unhardened factory that already has XInclude enabled
-        final SAXParserFactory unhardenedFactory = SAXParserFactory.newInstance();
-        unhardenedFactory.setNamespaceAware(true);
-        assumeXIncludeAware(unhardenedFactory);
-        final XMLReader reader = SecureSAXParserFactory.secure(unhardenedFactory.newSAXParser().getXMLReader());
+        // Reader from an unsecured factory that already has XInclude enabled
+        final SAXParserFactory unsecuredFactory = SAXParserFactory.newInstance();
+        unsecuredFactory.setNamespaceAware(true);
+        assumeXIncludeAware(unsecuredFactory);
+        final XMLReader reader = SecureSAXParserFactory.secure(unsecuredFactory.newSAXParser().getXMLReader());
         assertThrows(SAXException.class, () -> reader.parse(input),
                 "hardenReader should block XInclude parse=xml on reader with XInclude already enabled");
     }


(commons-xml) 09/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 8744754dc35d78914bcb3173f83ca9e84a3db92f
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:40:51 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/test/java/org/apache/commons/xml/BillionLaughsTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/xml/BillionLaughsTest.java b/src/test/java/org/apache/commons/xml/BillionLaughsTest.java
index 30416b5..0f058d2 100644
--- a/src/test/java/org/apache/commons/xml/BillionLaughsTest.java
+++ b/src/test/java/org/apache/commons/xml/BillionLaughsTest.java
@@ -39,7 +39,7 @@
  *   <li>{@link #CONTENT_120K} ({@code 120,000}) on the JVM: above every JVM parser default.</li>
  *   <li>{@link #CONTENT_9M} ({@code 9,000,000}) on Android: above libexpat's 8 MiB billion-laughs activation threshold, the only defense there since the limit is
  *       not configurable. For that same reason the positive controls do not run on Android (see {@link #assumeEntityLimitConfigurable()}): a payload the secure test
- *       blocks cannot be parsed even without hardening.</li>
+ *       blocks cannot be parsed even without securing.</li>
  * </ul>
  *
  * <p>The XSLT payload spreads those same {@code 120,000} expansions over two literal result elements with content {@link #CONTENT_60K} rather than one text node,
@@ -75,7 +75,7 @@ class BillionLaughsTest {
      *
      * <p>The controls prove the secure test blocked a payload that would otherwise parse, so they must use the very payload the secure test blocks.
      * On Android the entity-expansion limit is not configurable (libexpat's billion-laughs check cannot be lifted), so that payload
-     * cannot be parsed even without hardening, leaving nothing to prove.</p>
+     * cannot be parsed even without securing, leaving nothing to prove.</p>
      */
     private static void assumeEntityLimitConfigurable() {
         Assumptions.assumeFalse(AttackTestSupport.IS_ANDROID, "Skipped on Android: the entity-expansion limit is not configurable");


(commons-xml) 16/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 3ab27442e8c2b0add5d91632f0930b40a82a0469
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:45:25 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/main/java/org/apache/commons/xml/SecureTransformerFactory.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/xml/SecureTransformerFactory.java b/src/main/java/org/apache/commons/xml/SecureTransformerFactory.java
index 1a1dd61..dcf12ed 100644
--- a/src/main/java/org/apache/commons/xml/SecureTransformerFactory.java
+++ b/src/main/java/org/apache/commons/xml/SecureTransformerFactory.java
@@ -427,7 +427,7 @@ public static TransformerFactory newInstance(final String factoryClassName, fina
      *         {@link org.apache.commons.xml}-hardened reader instead.</li>
      * </ul>
      *
-     * @param factory the factory to harden; never {@code null}.
+     * @param factory the factory to secure; never {@code null}.
      * @return a secure factory.
      */
     static TransformerFactory secure(final TransformerFactory factory) {


(commons-xml) 13/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 6df7de110a795c061e9916e9f77a824143e04652
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:43:01 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/main/java/org/apache/commons/xml/SecureSAXParserFactory.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/xml/SecureSAXParserFactory.java b/src/main/java/org/apache/commons/xml/SecureSAXParserFactory.java
index 7873404..9dfb7a7 100644
--- a/src/main/java/org/apache/commons/xml/SecureSAXParserFactory.java
+++ b/src/main/java/org/apache/commons/xml/SecureSAXParserFactory.java
@@ -333,7 +333,7 @@ static XMLReader newSecureXMLReader(final boolean overrideDefaultParser) throws
      *         chain its own resolver onto the floor to allow-list resources, but cannot remove it.</li>
      * </ul>
      *
-     * @param factory the factory to harden; never {@code null}.
+     * @param factory the factory to secure; never {@code null}.
      * @return a secure factory.
      */
     static SAXParserFactory secure(final SAXParserFactory factory) {
@@ -352,7 +352,7 @@ static SAXParserFactory secure(final SAXParserFactory factory) {
      * as-is. Used by the TrAX and schema wrappers to route every source they parse through the SAX secure path.
      * </p>
      *
-     * @param source           the source to harden; never {@code null}.
+     * @param source           the source to secure; never {@code null}.
      * @param overrideDefaultParser whether {@value #OVERRIDE_DEFAULT_PARSER} on the originating factory asks to override the JDK's default parser.
      * @return a secure source.
      * @throws TransformerConfigurationException if a secure reader cannot be obtained.
@@ -370,7 +370,7 @@ static Source secure(final Source source, final boolean overrideDefaultParser) t
     /**
      * Secures an existing {@link XMLReader}.
      *
-     * @param reader The reader to harden; never {@code null}.
+     * @param reader The reader to secure; never {@code null}.
      * @return A secure reader.
      * @throws IllegalStateException if a required secure setting cannot be applied to the underlying implementation.
      */


(commons-xml) 08/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit ef3a678a91e6c023a1d830688ad40d08f9ae47bf
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:40:28 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/main/java/org/apache/commons/xml/SecureXPathFactory.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/xml/SecureXPathFactory.java b/src/main/java/org/apache/commons/xml/SecureXPathFactory.java
index d7f9378..0ae024d 100644
--- a/src/main/java/org/apache/commons/xml/SecureXPathFactory.java
+++ b/src/main/java/org/apache/commons/xml/SecureXPathFactory.java
@@ -211,7 +211,7 @@ public static XPathFactory newInstance(final String uri, final String factoryCla
      *         the engine never parses.</li>
      * </ul>
      *
-     * @param factory The factory to harden.
+     * @param factory The factory to secure.
      * @return A new secure factory or the original factory, secure, if it is a known Saxon factory.
      * @throws SecureException Thrown if this {@link XPathFactory} or the {@code XPath}s it creates cannot support this feature.
      */
@@ -229,7 +229,7 @@ static XPathFactory secure(final XPathFactory factory) {
     /**
      * Sets a feature on the given factory, throwing a {@link SecureException} if the implementation does not recognize it.
      *
-     * @param factory The factory to harden.
+     * @param factory The factory to secure.
      * @param feature The feature to set.
      * @param value   The value to set.
      * @throws SecureException Thrown if this {@link XPathFactory} or the {@code XPath}s it creates cannot support this feature or if {@code feature} is


(commons-xml) 34/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit ccbf0e2312662b61c5b1c940c876b857130fbc4a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:54:15 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/site/markdown/threat_model.md | 60 +++++++++++++++++++--------------------
 1 file changed, 30 insertions(+), 30 deletions(-)

diff --git a/src/site/markdown/threat_model.md b/src/site/markdown/threat_model.md
index 7062c08..aa6acca 100644
--- a/src/site/markdown/threat_model.md
+++ b/src/site/markdown/threat_model.md
@@ -41,13 +41,13 @@ a finding that falls under [What is out of scope](#what-is-out-of-scope) will be
 ### Scope and Intended Use
 
 This library is a helper for **safely creating JAXP factories**. Each `XxxFactory.newYyy()` method returns a
-new, hardened factory whose parsers reject the common XML attacks (external entity / DTD resolution, XXE, SSRF through
+new, secured factory whose parsers reject the common XML attacks (external entity / DTD resolution, XXE, SSRF through
 external references, and entity-expansion denial of service such as Billion Laughs). The exact guarantee each factory
 makes is documented in the Javadoc:
 
 https://commons.apache.org/index/commons-xml/apidocs/org/apache/commons/xml/package-summary.html
 
-The hardening applies to the factory and to the parsers, readers, transformers, validators, schemas and XPath objects it produces.
+Thesecuring applies to the factory and to the parsers, readers, transformers, validators, schemas and XPath objects it produces.
 It governs what those objects read;
 what a transform writes is the stylesheet author's capability
 (see **Transform output destinations** under [What is out of scope](#what-is-out-of-scope)).
@@ -55,7 +55,7 @@ what a transform writes is the stylesheet author's capability
 ### Adversary Model and Trust Boundary
 
 The adversary is whoever controls the XML an application parses, together with any external system an XML
-document tries to reach through an entity, DTD, schema, stylesheet, or XInclude reference. The hardening
+document tries to reach through an entity, DTD, schema, stylesheet, or XInclude reference. Thesecuring
 exists to stop that untrusted document from reading local resources, reaching the network, or exhausting
 memory or CPU.
 
@@ -71,17 +71,17 @@ an `XMLReader` wrapped in a `SAXSource`,
 a StAX reader inside a `StAXSource`,
 or a document parsed elsewhere and handed over as a `DOMSource`
 are **trusted** configuration, not untrusted input.
-The library hardens what it creates;
+The library secures what it creates;
 it does not re-harden what you built,
 because your reader's settings are indistinguishable from configuration you chose deliberately.
 
 ### What is in Scope
 
-- The hardening recipes applied by `org.apache.commons.xml`.
+- Thesecuring recipes applied by `org.apache.commons.xml`.
   Every implementation of JAXP 1.4 or later is in scope,
   as long as it respects the contract of the features, attributes, and properties the recipes use.
   An implementation that cannot accept a required setting makes the factory method throw
-  instead of returning an unhardened factory.
+  instead of returning an unsecured factory.
 
   The recipes for Android's Expat/KXmlParser are applied as best-effort and carry no guarantee
   (see **Supported runtimes** under [Assumptions about the environment](#assumptions-about-the-environment)).
@@ -96,7 +96,7 @@ spawn processes,
 install signal handlers,
 or read environment variables of its own:
 each `org.apache.commons.xml` factory method only configures and returns a JAXP factory.
-Which hardening recipe applies depends on the JAXP implementation present on the classpath.
+Whichsecuring recipe applies depends on the JAXP implementation present on the classpath.
 
 **Supported runtimes**
 
@@ -108,7 +108,7 @@ Android, on every API level, carries no guarantee:
 no version of Android supports `FEATURE_SECURE_PROCESSING`
 (so states [Android's own documentation](https://developer.android.com/reference/javax/xml/parsers/DocumentBuilderFactory#setFeature%28java.lang.String,%20boolean%29)),
 the setting the guaranteed processing limits build on.
-The library still hardens Android's parsers as best-effort,
+The library still secures Android's parsers as best-effort,
 tested as complete starting with API level 33
 (see [Supported runtimes](index.html) on the main page),
 but a report demonstrated only on Android is [out of scope](#what-is-out-of-scope) on any API level.
@@ -118,7 +118,7 @@ but a report demonstrated only on Android is [out of scope](#what-is-out-of-scop
 The library reads a single system property of its own,
 `org.apache.commons.xml.throwOnUnresolved`:
 when set to `true`,
-every hardened factory rejects an unresolved external reference with an exception
+every secured factory rejects an unresolved external reference with an exception
 instead of resolving it to empty content.
 Either way the resource is not fetched,
 so the property selects an error-reporting style,
@@ -146,7 +146,7 @@ such as Billion Laughs.
 The library MAY rely on the following features, attributes and properties staying as configured. They are reserved because
 they govern external resource access, DTD, entity or schema handling, the installation of a resolver, or processing
 limits; loosening any of them, on the returned factory or on a parser, reader, transformer, validator or schema it
-produces, breaks the hardening for that instance.
+produces, breaks thesecuring for that instance.
 
 - `http://apache.org/xml/features/disallow-doctype-decl`
 - `http://apache.org/xml/features/nonvalidating/load-external-dtd`
@@ -167,12 +167,12 @@ This list is not exhaustive:
 any other feature, attribute, property, or system property that
 grants access to an external resource,
 relaxes DTD or entity processing,
-installs a resolver the hardening layer does not wrap
+installs a resolver thesecuring layer does not wrap
 (like the Xerces-specific `http://apache.org/xml/properties/internal/entity-resolver`, listed above),
 or raises a processing limit
 is reserved on the same terms.
 
-Installing a resolver through the typed `set*Resolver` methods, the `DefaultHandler` passed to `SAXParser.parse`, or the resolver properties listed under **Settings you may modify** does not loosen the hardening:
+Installing a resolver through the typed `set*Resolver` methods, the `DefaultHandler` passed to `SAXParser.parse`, or the resolver properties listed under **Settings you may modify** does not loosen thesecuring:
 those paths are wrapped by a non-removable floor.
 
 **Settings You May Modify**
@@ -180,7 +180,7 @@ those paths are wrapped by a non-removable floor.
 The following are security-relevant but safe to change on a returned factory: the protection they appear to govern is
 enforced by the reserved settings above, which a caller cannot lift.
 
-- **Resolvers.** You may install your own resolver: the hardening floor wraps it instead of being replaced, so it stays
+- **Resolvers.** You may install your own resolver: thesecuring floor wraps it instead of being replaced, so it stays
   in force. This covers the typed setters and the resolver properties:
     - `setEntityResolver(...)` (DOM and SAX), including the `DefaultHandler` passed to `SAXParser.parse(..., DefaultHandler)`,
     - `setResourceResolver(...)` (schema compilation and validation),
@@ -196,7 +196,7 @@ enforced by the reserved settings above, which a caller cannot lift.
   it does not fall through to a fetch.
 
   An opted-in resource stays on the floor:
-  a `Source` returned by a `URIResolver` is re-parsed through a hardened reader
+  a `Source` returned by a `URIResolver` is re-parsed through a secured reader
   (a `DOMSource`, or a `SAXSource` carrying your own reader, is used as returned).
 
 - **Validation.** You may turn on DTD or XSD validation, using these methods and features/properties:
@@ -222,12 +222,12 @@ enforced by the reserved settings above, which a caller cannot lift.
   On the stock JDK TrAX, XPath, and schema implementations
   you may set [`jdk.xml.overrideDefaultParser`](https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/module-summary.html#jdk.xml.overrideDefaultParser)
   to switch their internal parses from the JDK parsers to a `ServiceLoader`-resolved parser.
-  Whichever parser is selected, it is hardened,
+  Whichever parser is selected, it is secured,
   so the setting carries no security weight.
 
 ### What is Out of Scope
 
-A returned factory is hardened as delivered; reconfiguring it is a decision to take over hardening for that instance,
+A returned factory is secured as delivered; reconfiguring it is a decision to take oversecuring for that instance,
 and reports against a factory reconfigured in any of the ways below are out of scope.
 
 - **Modifying a reserved setting.** Loosening any feature, attribute or property reserved under
@@ -238,25 +238,25 @@ and reports against a factory reconfigured in any of the ways below are out of s
   enforce.
 - **Caller-supplied top-level URIs.** A URI passed directly to a parse call (`DocumentBuilder.parse(String)`,
   `StreamSource(systemId)`, a `SAXSource` built from a system id) is fetched as-is by the JAXP implementation without
-  consulting the hardening layer. Restrict it yourself if the URI is untrusted.
+  consulting thesecuring layer. Restrict it yourself if the URI is untrusted.
 - **Caller-supplied parser instances.**
   A parser built outside `org.apache.commons.xml` and handed to a produced instance is used as configured:
   a `SAXSource` carrying its own `XMLReader`,
   a `StAXSource` carrying a stream or event reader,
   or a `DOMSource` holding a document parsed elsewhere.
   Its settings are yours, including permissive ones.
-  To parse with your own reader under the hardening guarantees,
+  To parse with your own reader under thesecuring guarantees,
   obtain it from `HardeningSAXParserFactory.newInstance()`
   before wrapping it in a `SAXSource`.
-- The behavior of a JAXP implementation that does not respect the contract of the settings a hardening recipe requires
-  (the factory method throws rather than returning an unhardened factory),
+- The behavior of a JAXP implementation that does not respect the contract of the settings asecuring recipe requires
+  (the factory method throws rather than returning an unsecured factory),
   and any defect in the underlying JAXP implementation itself.
 - **Android, on any API level.**
   No version of Android supports `FEATURE_SECURE_PROCESSING`,
-  so the hardening there is best-effort and no guarantee is defined
+  so thesecuring there is best-effort and no guarantee is defined
   (see **Supported runtimes** under [Assumptions about the environment](#assumptions-about-the-environment)).
 - **Transform output destinations.**
-  The hardening governs what a parse or transform reads;
+  Thesecuring governs what a parse or transform reads;
   it does not confine what a transform writes.
   A stylesheet's output-producing instructions,
   `xsl:result-document` in particular,
@@ -268,7 +268,7 @@ and reports against a factory reconfigured in any of the ways below are out of s
 
 ### Downstream Responsibility
 
-Use the factory as returned. If you reconfigure it, you take over hardening for that instance and are responsible for
+Use the factory as returned. If you reconfigure it, you take oversecuring for that instance and are responsible for
 re-establishing any protection you remove.
 
 ### Known Non-Findings
@@ -279,13 +279,13 @@ are **not** vulnerabilities under this model:
 - A claim that a factory or instance produced by `org.apache.commons.xml` is unsafe, without showing that a reserved
   setting was loosened, a resolver was installed, or an untrusted top-level URI was passed (see
   [Assumptions about the environment](#assumptions-about-the-environment) and
-  [What is out of scope](#what-is-out-of-scope)). As delivered, the instance is hardened; the bare presence
+  [What is out of scope](#what-is-out-of-scope)). As delivered, the instance is secured; the bare presence
   of a `SAXParser`, `DocumentBuilder`, `XMLReader`, `Transformer`, `Validator` or `Schema` is not a finding.
 - XXE, external-entity, SSRF-through-external-reference, or entity-expansion (Billion Laughs) reports against
-  a factory used as delivered. Blocking these is exactly what the hardening does. A working proof against an
+  a factory used as delivered. Blocking these is exactly what thesecuring does. A working proof against an
   unmodified instance is a `VALID` finding (see below); a scanner that pattern-matches on parser type is not.
 - A report demonstrated only on Android,
-  where the hardening is best-effort and no guarantee is defined
+  where thesecuring is best-effort and no guarantee is defined
   (see **Supported runtimes** under [Assumptions about the environment](#assumptions-about-the-environment)).
 - Reports against an instance after the caller installed a resolver (including the `DefaultHandler` passed to
   `SAXParser.parse(..., DefaultHandler)`) or loosened a reserved setting.
@@ -301,8 +301,8 @@ are **not** vulnerabilities under this model:
 - A path-traversal or file-write report through `xsl:result-document` or another output-producing
   instruction of a stylesheet
   (see **Transform output destinations** under [What is out of scope](#what-is-out-of-scope)).
-- Reports in a JAXP implementation that does not respect the contract of the settings a hardening recipe
-  requires: `org.apache.commons.xml` factory method throws rather than returning an unhardened factory, so there is no instance to attack.
+- Reports in a JAXP implementation that does not respect the contract of the settings asecuring recipe
+  requires: `org.apache.commons.xml` factory method throws rather than returning an unsecured factory, so there is no instance to attack.
 
 ### Triage Dispositions
 
@@ -310,10 +310,10 @@ A report judged against this model receives exactly one of:
 
 | Disposition | Meaning |
 | --- | --- |
-| `VALID` | A factory or instance used as delivered fails to provide a guarantee its Javadoc states (for example, a hardened parser still resolves an external entity, or a documented processing limit is not applied). |
+| `VALID` | A factory or instance used as delivered fails to provide a guarantee its Javadoc states (for example, a secured parser still resolves an external entity, or a documented processing limit is not applied). |
 | `OUT-OF-SCOPE: reconfigured` | A reserved setting was loosened, or a resolver was installed, on the factory or a produced instance before the reported behavior (see [What is out of scope](#what-is-out-of-scope)). |
 | `OUT-OF-SCOPE: caller input` | The behavior follows from a top-level URI, a parser instance the caller constructed outside the library, or other input the caller passed directly to a parse call. |
-| `OUT-OF-SCOPE: foreign implementation` | The behavior is in a JAXP implementation that does not respect the contract of the settings a hardening recipe requires, or is a defect in the underlying JAXP implementation itself. |
+| `OUT-OF-SCOPE: foreign implementation` | The behavior is in a JAXP implementation that does not respect the contract of the settings asecuring recipe requires, or is a defect in the underlying JAXP implementation itself. |
 | `OUT-OF-SCOPE: unsupported runtime` | The behavior is demonstrated only on a runtime the guarantees are not defined on, such as Android on any API level (see **Supported runtimes** under [Assumptions about the environment](#assumptions-about-the-environment)). |
 | `MODEL-GAP` | The report fits none of the above. The model is then incomplete: revise it rather than making an ad-hoc call. |
 


(commons-xml) 14/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 5d3af1544aad4ecb48a15e7022b1eff65d2db3f3
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:44:17 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/main/java/org/apache/commons/xml/SecureSchema.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/xml/SecureSchema.java b/src/main/java/org/apache/commons/xml/SecureSchema.java
index c5fe81a..8eda7ff 100644
--- a/src/main/java/org/apache/commons/xml/SecureSchema.java
+++ b/src/main/java/org/apache/commons/xml/SecureSchema.java
@@ -24,7 +24,7 @@
 import javax.xml.validation.ValidatorHandler;
 
 /**
- * {@link Schema} wrapper that hardens every {@link Validator} and {@link ValidatorHandler} the inner Schema produces: each {@link Validator} is wrapped in
+ * {@link Schema} wrapper that secures every {@link Validator} and {@link ValidatorHandler} the inner Schema produces: each {@link Validator} is wrapped in
  * {@link SecureValidator} (which rewrites the Source through {@link SecureSAXParserFactory#secure(javax.xml.transform.Source, boolean)} and installs the resolver
  * floor), and each {@link ValidatorHandler} is wrapped in a {@link SecureValidatorHandler} that keeps the same ignore-all resolver floor so
  * {@code xsi:schemaLocation} is not resolved during SAX-driven validation.


(commons-xml) 18/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 82274f6c6e33466e6fdd9fd32d69dff2f6f49934
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:46:36 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/test/java/org/apache/commons/xml/TemplatesHandlerTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/xml/TemplatesHandlerTest.java b/src/test/java/org/apache/commons/xml/TemplatesHandlerTest.java
index 0a42842..6c6ac7a 100644
--- a/src/test/java/org/apache/commons/xml/TemplatesHandlerTest.java
+++ b/src/test/java/org/apache/commons/xml/TemplatesHandlerTest.java
@@ -36,7 +36,7 @@
 /**
  * {@link TemplatesHandler} products of the secure factory: {@code xsl:include} resolution during the SAX-driven compile sits on the factory's resolver floor,
  * and the {@link Templates} returned by {@link TemplatesHandler#getTemplates()} produce Transformers that carry the floor. The unconfigured control proves the
- * vector leaks without the hardening.
+ * vector leaks without the securing.
  */
 @Tag("trax")
 class TemplatesHandlerTest {


(commons-xml) 17/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 75e1e83924c7428c3c0fd2313353569331270a52
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:45:57 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/main/java/org/apache/commons/xml/SecureXMLInputFactory.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/xml/SecureXMLInputFactory.java b/src/main/java/org/apache/commons/xml/SecureXMLInputFactory.java
index 4ed2ab6..d7421d9 100644
--- a/src/main/java/org/apache/commons/xml/SecureXMLInputFactory.java
+++ b/src/main/java/org/apache/commons/xml/SecureXMLInputFactory.java
@@ -327,7 +327,7 @@ public static XMLInputFactory newInstance() {
      * every entity-resolution hook, leaving the standard {@code SUPPORT_DTD} / {@code IS_SUPPORTING_EXTERNAL_ENTITIES} defaults untouched; see the wrapper's
      * Javadoc for the per-implementation hook routing.</p>
      *
-     * @param factory the factory to harden; never {@code null}.
+     * @param factory the factory to secure; never {@code null}.
      * @return a secure factory.
      */
     static XMLInputFactory secure(final XMLInputFactory factory) {


(commons-xml) 03/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit a019d178925ed2a2be59d1ffcc87961aaad05a1c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:39:34 2026 -0400

    Javadoc: Use "secure" terminology.
---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 4cf2247..94a39e5 100644
--- a/README.md
+++ b/README.md
@@ -50,7 +50,7 @@ Apache Commons Secure XML
 [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/apache/commons-xml/badge)](https://api.securityscorecards.dev/projects/github.com/apache/commons-xml)
 
 Apache Commons Secure XML provides secure-by-default JAXP factory creation, abstracting over
-    implementation-specific XXE hardening differences between the stock JDK and external JAXP implementations
+    implementation-specific XXE securing differences between the stock JDK and external JAXP implementations
     (Android, Apache Xalan, Apache Xerces, Woodstox, Saxon-HE).
 
 Documentation


(commons-xml) 07/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit c44e49cdabacd75b82b822d85e4174265bfd7a89
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:40:05 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/changes/changes.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 9e2f291..8a746f8 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -45,12 +45,12 @@ The <action> type attribute can be add, update, fix, or remove.
       <action type="fix" dev="ppkarwasz" due-to="Ta Duc Thien, Piotr P. Karwasz, Gary Gregory" issue="COMMONSXML-10">Block XInclude (xi:include) href resolution by default, since the JAXP external-access properties do not govern it.</action>
       <action type="fix" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory">Honor jdk.xml.overrideDefaultParser on TrAX, XPath and schema factories that recognize it.</action>
       <action type="fix" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory">Restore the secure configuration when a factory or parser is reset() instead of reverting to the implementation defaults.</action>
-      <action type="fix" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory">Parse a Source opted in by a caller-supplied URIResolver using a hardened parser.</action>
+      <action type="fix" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory">Parse a Source opted in by a caller-supplied URIResolver using a secure parser.</action>
       <action type="fix" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory">Secure the document parse behind the InputSource-taking XPath evaluation entry points.</action>
       <!-- UPDATE -->
-      <action type="update" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory" issue="COMMONSXML-1,COMMONSXML-5,COMMONSXML-6,COMMONSXML-7,COMMONSXML-8">Recognize XML implementations by the JAXP features and properties they support instead of by their implementation class name, extending the hardening to any compliant implementation.</action>
+      <action type="update" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory" issue="COMMONSXML-1,COMMONSXML-5,COMMONSXML-6,COMMONSXML-7,COMMONSXML-8">Recognize XML implementations by the JAXP features and properties they support instead of by their implementation class name, extending the securing to any compliant implementation.</action>
       <action type="update" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory" issue="COMMONSXML-4">Define a consistent contract for denied external fetches: unresolved external references resolve to empty content on every implementation, unless the org.apache.commons.xml.throwOnUnresolved system property requests rejection.</action>
-      <action type="update" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory" issue="COMMONSXML-3">Reduce the shaded footprint by splitting the hardeners and resolver floors into independent entry points.</action>
+      <action type="update" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory" issue="COMMONSXML-3">Reduce the shaded footprint by splitting the secure and resolver floors into independent entry points.</action>
       <!-- REMOVE -->
       <action type="remove" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory" issue="COMMONSXML-2">Remove the Limits class that applied uniform processing limits across implementations.</action>
     </release>


(commons-xml) 06/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 5a9088eb5fa6d6ec290058abb38d7896948111bf
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:39:59 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/test/java/org/apache/commons/xml/AttackTestSupport.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/test/java/org/apache/commons/xml/AttackTestSupport.java b/src/test/java/org/apache/commons/xml/AttackTestSupport.java
index b9b3574..8e465d5 100644
--- a/src/test/java/org/apache/commons/xml/AttackTestSupport.java
+++ b/src/test/java/org/apache/commons/xml/AttackTestSupport.java
@@ -61,7 +61,7 @@
  * <p>The secure-side helpers come in three flavors, distinguished by their suffix:</p>
  *
  * <ul>
- *   <li>{@code assert*Blocks(...)} runs the payload through a secure factory from {@link org.apache.commons.xml} and asserts the parse throws. Used when the hardening
+ *   <li>{@code assert*Blocks(...)} runs the payload through a secure factory from {@link org.apache.commons.xml} and asserts the parse throws. Used when the secure
  *       layer is expected to reject the attack outright.</li>
  *   <li>{@code assert*DoesNotLeak(...)} runs the payload through a secure factory and asserts the parse completes without throwing and without producing the
  *       {@link #LEAKED_MARKER} string. Used when the secure contract guarantees the parse succeeds but never resolves the external resource (for example,
@@ -595,7 +595,7 @@ static void assertTemplatesCompiles(final Source xslt) {
     /**
      * Asserts a secure Templates compile-and-transform completes without throwing and without leaked content.
      *
-     * <p>{@link TransformerFactory#newTemplates(Source)} via {@link SecureTransformerFactory#newInstance()} followed by transform; use this when the hardening
+     * <p>{@link TransformerFactory#newTemplates(Source)} via {@link SecureTransformerFactory#newInstance()} followed by transform; use this when the secure
      * contract guarantees the compile and transform succeed but never resolve the external resource.</p>
      */
     static void assertTemplatesDoesNotLeak(final Source xslt) {
@@ -624,7 +624,7 @@ static void assertTransformerBlocksOrDoesNotLeak(final String payload) {
     /**
      * Asserts a secure identity Transformer completes without throwing and without leaked content.
      *
-     * <p>{@link Transformer#transform(Source, javax.xml.transform.Result)} via {@link SecureTransformerFactory#newInstance()}; use this when the hardening
+     * <p>{@link Transformer#transform(Source, javax.xml.transform.Result)} via {@link SecureTransformerFactory#newInstance()}; use this when the secure
      * contract guarantees the transform succeeds but never resolves the external resource.</p>
      */
     static void assertTransformerDoesNotLeak(final String payload) {
@@ -927,7 +927,7 @@ private static boolean probeDomResolvesInternalEntities() {
         }
     }
 
-    /** Builds a raw {@link XMLReader} from a deliberately permissive {@link SAXParserFactory} and hardens it via {@link SecureSAXParserFactory#secure(XMLReader)}. */
+    /** Builds a raw {@link XMLReader} from a deliberately permissive {@link SAXParserFactory} and secures it via {@link SecureSAXParserFactory#secure(XMLReader)}. */
     private static XMLReader rawSecureXMLReader() throws Exception {
         final SAXParserFactory factory = SAXParserFactory.newInstance();
         if (!IS_ANDROID) {


(commons-xml) 32/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit cf7c251754bc81d0373acc2014c4e259325842a8
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:54:02 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/main/java/org/apache/commons/xml/SecureXMLInputFactory.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/xml/SecureXMLInputFactory.java b/src/main/java/org/apache/commons/xml/SecureXMLInputFactory.java
index d7421d9..2b18de9 100644
--- a/src/main/java/org/apache/commons/xml/SecureXMLInputFactory.java
+++ b/src/main/java/org/apache/commons/xml/SecureXMLInputFactory.java
@@ -41,7 +41,7 @@
  * The three universal guarantees on {@link org.apache.commons.xml} apply; StAX exposes no additional vectors beyond them.
  * </p>
  * <p>
- * Not a {@link XMLInputFactory} itself, so none of the JAXP static factory methods is inherited: a caller cannot reach a non-hardened factory through this class
+ * Not a {@link XMLInputFactory} itself, so none of the JAXP static factory methods is inherited: a caller cannot reach a non-secured factory through this class
  * by calling an inherited method such as {@code newDefaultFactory()}. The secure factories are instances of a nested, non-public wrapper class.
  * </p>
  *


(commons-xml) 29/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 8d56408f239792a26fa7147dba63da1c4530ba5a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:53:47 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/main/java/org/apache/commons/xml/SecureSchemaFactory.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/xml/SecureSchemaFactory.java b/src/main/java/org/apache/commons/xml/SecureSchemaFactory.java
index a8bdc11..a16cd2e 100644
--- a/src/main/java/org/apache/commons/xml/SecureSchemaFactory.java
+++ b/src/main/java/org/apache/commons/xml/SecureSchemaFactory.java
@@ -50,7 +50,7 @@
  * resulting {@link javax.xml.validation.Schema}.
  * </p>
  * <p>
- * Not a {@link SchemaFactory} itself, so none of the JAXP static factory methods is inherited: a caller cannot reach a non-hardened factory through this class
+ * Not a {@link SchemaFactory} itself, so none of the JAXP static factory methods is inherited: a caller cannot reach a non-secured factory through this class
  * by calling an inherited method such as {@code newDefaultInstance()}. The secure factories are instances of a nested, non-public wrapper class.
  * </p>
  *


(commons-xml) 19/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 126c8cd26fa2c8309c4b8c1e4bbdae2f647e01a8
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:47:50 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/site/markdown/index.md | 54 +++++++++++++++++++++++-----------------------
 1 file changed, 27 insertions(+), 27 deletions(-)

diff --git a/src/site/markdown/index.md b/src/site/markdown/index.md
index 4b11600..48d3fa3 100644
--- a/src/site/markdown/index.md
+++ b/src/site/markdown/index.md
@@ -21,14 +21,14 @@ Apache Commons Secure XML is part of the
 [Apache Commons](https://commons.apache.org/index.html) project.
 
 Apache Commons Secure XML provides secure-by-default JAXP factory creation,
-abstracting over implementation-specific XXE hardening differences between the
+abstracting over implementation-specific XXE securing differences between the
 stock JDK and external JAXP implementations.
 
 
 ## Why
 
 Any Java library that parses XML has to secure JAXP before handing a factory to user code, and every library ends up
-copy-pasting the same hardening snippet. The snippet is fragile: the attributes and features needed to secure a factory
+copy-pasting the same securing snippet. The snippet is fragile: the attributes and features needed to secure a factory
 are not standardized, each JAXP implementation exposes a slightly different set, and setting an unknown one throws an
 exception that callers routinely swallow. Writing this block correctly for every implementation is real work, and
 duplicating it across projects means every project owns the maintenance burden on its own.
@@ -39,10 +39,10 @@ such as standalone Xerces, Woodstox, or Saxon's TrAX, need further configuration
 library author has no control over which implementation is on the classpath at runtime, so the effective security
 posture of their code depends on a deployment decision made elsewhere.
 
-This library provides that baseline. Each `org.apache.commons.xml` factory call returns a new factory hardened by an
+This library provides that baseline. Each `org.apache.commons.xml` factory call returns a new factory secured by an
 implementation-specific recipe, so the returned object behaves the same way security-wise regardless of which JAXP
 implementation resolved. Security becomes a property of the call, not of the classpath, and there is one place to
-update when a new hardening setting becomes available or a default changes.
+update when a new securing setting becomes available or a default changes.
 
 ## Usage
 
@@ -56,10 +56,10 @@ Add the library to your build:
 </dependency>
 ```
 
-Every factory method in `org.apache.commons.xml` returns a new, hardened factory.
+Every factory method in `org.apache.commons.xml` returns a new, secured factory.
 Pick the one that matches the API you already use;
 no other configuration is required.
-On hardened factories an external resource reference (DTD, entity, schema, stylesheet) is never fetched:
+On secured factories an external resource reference (DTD, entity, schema, stylesheet) is never fetched:
 it resolves to empty content,
 so the parse continues without it
 (see Configuration below).
@@ -79,7 +79,7 @@ it is not a JAXP API.
 ### Supported Implementations
 
 Out of the box the library recognizes the stock JDK JAXP implementations, Apache Xerces 2.x, Woodstox, and Saxon-HE. If
-a factory resolves to an implementation not covered by any bundled hardening recipe, every `org.apache.commons.xml` factory method throws
+a factory resolves to an implementation not covered by any bundled securing recipe, every `org.apache.commons.xml` factory method throws
 `IllegalStateException` with a message naming the unsupported class. Adding support for a new JAXP implementation
 requires a code change to this library.
 
@@ -89,7 +89,7 @@ requires a code change to this library.
 import org.w3c.dom.Document;
 import org.apache.commons.xml.SecureDocumentBuilderFactory;
 
-Document doc = HardeningDocumentBuilderFactory.newInstance().newDocumentBuilder().parse(inputStream);
+Document doc = SecureDocumentBuilderFactory.newInstance().newDocumentBuilder().parse(inputStream);
 ```
 
 **SAX Parsing** via `SAXParserFactory`:
@@ -97,7 +97,7 @@ Document doc = HardeningDocumentBuilderFactory.newInstance().newDocumentBuilder(
 ```java
 import org.apache.commons.xml.SecureSAXParserFactory;
 
-HardeningSAXParserFactory.newInstance().newSAXParser().parse(inputStream, myDefaultHandler);
+SecureSAXParserFactory.newInstance().newSAXParser().parse(inputStream, myDefaultHandler);
 ```
 
 **Streaming (StAX) Parsing** via `XMLInputFactory`:
@@ -106,7 +106,7 @@ HardeningSAXParserFactory.newInstance().newSAXParser().parse(inputStream, myDefa
 import javax.xml.stream.XMLStreamReader;
 import org.apache.commons.xml.SecureXMLInputFactory;
 
-XMLStreamReader reader = HardeningXMLInputFactory.newInstance().createXMLStreamReader(inputStream);
+XMLStreamReader reader = SecureXMLInputFactory.newInstance().createXMLStreamReader(inputStream);
 ```
 
 **XSLT Transforms** via `TransformerFactory`:
@@ -116,7 +116,7 @@ import javax.xml.transform.stream.StreamSource;
 import javax.xml.transform.stream.StreamResult;
 import org.apache.commons.xml.SecureTransformerFactory;
 
-HardeningTransformerFactory.newInstance()
+SecureTransformerFactory.newInstance()
         .newTransformer(new StreamSource(stylesheet))
         .transform(new StreamSource(inputStream), new StreamResult(outputStream));
 ```
@@ -128,7 +128,7 @@ import javax.xml.xpath.XPathConstants;
 import org.w3c.dom.NodeList;
 import org.apache.commons.xml.SecureXPathFactory;
 
-NodeList hits = (NodeList) HardeningXPathFactory.newInstance()
+NodeList hits = (NodeList) SecureXPathFactory.newInstance()
         .newXPath()
         .evaluate("//item", doc, XPathConstants.NODESET);
 ```
@@ -140,7 +140,7 @@ import javax.xml.XMLConstants;
 import javax.xml.transform.stream.StreamSource;
 import org.apache.commons.xml.SecureSchemaFactory;
 
-HardeningSchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI)
+SecureSchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI)
         .newSchema(new StreamSource(xsdStream))
         .newValidator()
         .validate(new StreamSource(inputStream));
@@ -153,7 +153,7 @@ It might be (and usually is) a wrapper around it,
 so it cannot be cast to the implementation's own class.
 Everything else about the implementation's behavior is preserved:
 features, properties, and attributes delegate to it,
-and only the security behavior is hardened.
+and only the security behavior is applied.
 
 Preserved behavior includes the choice of internal parsers.
 Each TrAX, XPath, or schema implementation has its own way of instantiating them,
@@ -165,12 +165,12 @@ and the library respects it:
   to switch to parsers instantiated through `ServiceLoader`.
 - Saxon selects its parsers through its own configuration.
 
-Whichever parser is selected, it is hardened.
+Whichever parser is selected, it is secured.
 
 ### Factory Methods
 
 Each factory class mirrors every static factory method its JAXP counterpart offers,
-so a hardened factory is a drop-in replacement at any construction site:
+so a secured factory is a drop-in replacement at any construction site:
 the class-name/class-loader overloads and the StAX `newFactory` family (JDK 8),
 `newDefaultInstance()` (Java 9, [JDK-8169778](https://bugs.openjdk.org/browse/JDK-8169778)),
 and the namespace-aware `newNSInstance()` family (Java 13, [JDK-8223423](https://bugs.openjdk.org/browse/JDK-8223423)).
@@ -192,23 +192,23 @@ rather than delegate the choice of implementation to the application developer.
 
 ### Stylesheets and Schemas
 
-The hardening applies to documents parsed through the returned factory. Stylesheets given to
+The securing applies to documents parsed through the returned factory. Stylesheets given to
 `TransformerFactory.newTransformer(Source)` and schemas given to `SchemaFactory.newSchema(Source)` are read by a parser
-the implementation picks internally, and that parser may not be hardened (Saxon's TrAX is one such case, see Building
-below). Treat stylesheets and schemas as trusted input, or pre-parse them through a hardened `org.apache.commons.xml` parser and
+the implementation picks internally, and that parser may not be secured (Saxon's TrAX is one such case, see Building
+below). Treat stylesheets and schemas as trusted input, or pre-parse them through a secured `org.apache.commons.xml` parser and
 pass the result as a `DOMSource` or `SAXSource`.
 A stylesheet also chooses where the transform writes (`xsl:result-document`):
-the hardening governs reads only,
+the securing governs reads only,
 so restrict output destinations yourself when running an untrusted stylesheet
 (see the [Threat Model](threat_model.html)).
 
 ### Transformer Handlers and Filters
 
 The `SAXTransformerFactory` extension methods, `newTransformerHandler(...)`, `newTemplatesHandler()` and `newXMLFilter(...)`,
-if reachable by casting the factory from `HardeningTransformerFactory.newInstance()`,
-produce handlers, filters and `Templates` carrying the same hardening as the standard entry points:
+if reachable by casting the factory from `SecureTransformerFactory.newInstance()`,
+produce handlers, filters and `Templates` carrying the same securing as the standard entry points:
 runtime `document()` resolves to empty content,
-and a filter with no caller-set parent parses its input through a hardened reader.
+and a filter with no caller-set parent parses its input through a secured reader.
 The SAX events you feed into a handler, and a parent reader you set on a filter,
 are your own configuration, like any caller-supplied parser.
 See the [Threat Model](threat_model.html) for the exact scope.
@@ -221,10 +221,10 @@ they are not thread-safe. Create a new factory per thread or synchronize externa
 
 ## Configuration
 
-The hardened factories need no configuration.
+The secured factories need no configuration.
 When a document references an external resource
 (a DTD, an external entity, a schema, an XInclude target, or an XSLT document),
-the hardening layer resolves the reference to an empty stream:
+the securing layer resolves the reference to an empty stream:
 nothing is fetched,
 nothing leaks into the result,
 and the parse continues wherever the implementation can proceed with empty content.
@@ -232,7 +232,7 @@ This forgiving default accommodates documents that merely carry such references
 
 If your application should reject such documents instead of parsing them,
 tighten the factory yourself.
-The hardening floor stays underneath whatever you configure,
+The securing floor stays underneath whatever you configure,
 so the tightening carries **no security weight**
 and can be as strict as the application needs:
 
@@ -242,7 +242,7 @@ and can be as strict as the application needs:
   on implementations that support the feature.
 - Install a resolver that throws.
   A caller-supplied `EntityResolver`, `XMLResolver`, `LSResourceResolver` or `URIResolver`
-  is consulted before the hardening floor,
+  is consulted before the securing floor,
   so an allow-list and a deny-all are both one resolver away.
 
 As a temporary debugging measure,


(commons-xml) 30/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit c996773278df8ec02f45a95f4d9dfb8478d10d91
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:53:52 2026 -0400

    Javadoc: Use "secure" terminology.
---
 .../java/org/apache/commons/xml/SecureTransformerFactory.java     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/commons/xml/SecureTransformerFactory.java b/src/main/java/org/apache/commons/xml/SecureTransformerFactory.java
index dcf12ed..f6db179 100644
--- a/src/main/java/org/apache/commons/xml/SecureTransformerFactory.java
+++ b/src/main/java/org/apache/commons/xml/SecureTransformerFactory.java
@@ -68,7 +68,7 @@
  * {@code newXMLFilter(..)}), if reachable by casting the returned factory, produce objects carrying the same guarantees.
  * </p>
  * <p>
- * Not a {@link TransformerFactory} itself, so none of the JAXP static factory methods is inherited: a caller cannot reach a non-hardened factory through this class
+ * Not a {@link TransformerFactory} itself, so none of the JAXP static factory methods is inherited: a caller cannot reach a non-secured factory through this class
  * by calling an inherited method such as {@code newDefaultInstance()}. The secure factories are instances of a nested, non-public wrapper class.
  * </p>
  *
@@ -82,7 +82,7 @@ public final class SecureTransformerFactory {
      *
      * <p>Used by providers whose underlying TrAX implementation pulls a new {@code SAXParserFactory.newInstance()} for any Source that is not already a
      * {@link SAXSource} carrying its own {@link XMLReader}, and only sets {@link javax.xml.XMLConstants#FEATURE_SECURE_PROCESSING FSP} on the resulting reader.
-     * Wrapping the factory and rewriting the Source upstream guarantees the parse runs through an {@link org.apache.commons.xml}-hardened reader instead.</p>
+     * Wrapping the factory and rewriting the Source upstream guarantees the parse runs through an {@link org.apache.commons.xml}-secured reader instead.</p>
      *
      * <p>Three layers cooperate:</p>
      * <ol>
@@ -96,7 +96,7 @@ public final class SecureTransformerFactory {
      * <p>The {@link SAXTransformerFactory} extension products ride the same wrappers: {@code newTransformerHandler}/{@code newTemplatesHandler} products are
      * wrapped ({@link SecureTransformerHandler}, {@link SecureTemplatesHandler}) so the {@link Transformer}/{@link Templates} they expose carry the resolver
      * floor, and {@code newXMLFilter} returns a {@link SecureXMLFilter} composed from these wrappers instead of the implementation's filter, which would
-     * self-provision an unhardened input reader.</p>
+     * self-provision an unsecured input reader.</p>
      *
      * <h2>Caveats</h2>
      * <ul>
@@ -424,7 +424,7 @@ public static TransformerFactory newInstance(final String factoryClassName, fina
      *         routed through the floor rather than replacing it, so a caller can opt a specific URI in but cannot reopen the fetch.</li>
      *     <li><strong>The nested wrapper</strong>: required. Both implementations fall back to {@code SAXParserFactory.newInstance()} to parse a
      *         stylesheet or source document that does not carry its own reader, and only set FSP on it; wrapping the factory rewrites every {@link Source} through an
-     *         {@link org.apache.commons.xml}-hardened reader instead.</li>
+     *         {@link org.apache.commons.xml}-secured reader instead.</li>
      * </ul>
      *
      * @param factory the factory to secure; never {@code null}.


(commons-xml) 27/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 725cabe3fc86a14631eedd18fa4ccbb159071dde
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:53:38 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/test/java/org/apache/commons/xml/SecureFactoriesSmokeTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/xml/SecureFactoriesSmokeTest.java b/src/test/java/org/apache/commons/xml/SecureFactoriesSmokeTest.java
index 498e3b0..9154afa 100644
--- a/src/test/java/org/apache/commons/xml/SecureFactoriesSmokeTest.java
+++ b/src/test/java/org/apache/commons/xml/SecureFactoriesSmokeTest.java
@@ -297,7 +297,7 @@ void newXPathFactoryReturnsFreshInstance() throws Exception {
 
     /**
      * The public classes must not extend their JAXP factory type: extending it would inherit the JAXP static factory methods, letting a caller obtain a
-     * non-hardened factory through an inherited method such as {@code newInstance(String, ClassLoader)} or {@code newDefaultInstance()}.
+     * non-secured factory through an inherited method such as {@code newInstance(String, ClassLoader)} or {@code newDefaultInstance()}.
      */
     @Test
     void publicClassesDoNotExtendTheirJaxpFactoryType() {


(commons-xml) 24/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 05a04826a873a53f8aa23f92ea203c478d71c875
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:53:22 2026 -0400

    Javadoc: Use "secure" terminology.
---
 RELEASE-NOTES.txt       | 4 ++--
 src/changes/changes.xml | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt
index 690cf11..0d3d724 100644
--- a/RELEASE-NOTES.txt
+++ b/RELEASE-NOTES.txt
@@ -47,9 +47,9 @@ Fixed Bugs
 Changes
 -------
 
-* COMMONSXML-1,COMMONSXML-5,COMMONSXML-6,COMMONSXML-7,COMMONSXML-8: Recognize XML implementations by the JAXP features and properties they support instead of by their implementation class name, extending the hardening to any compliant implementation. Thanks to Piotr P. Karwasz, Gary Gregory.
+* COMMONSXML-1,COMMONSXML-5,COMMONSXML-6,COMMONSXML-7,COMMONSXML-8: Recognize XML implementations by the JAXP features and properties they support instead of by their implementation class name, extending the securing to any compliant implementation. Thanks to Piotr P. Karwasz, Gary Gregory.
 * COMMONSXML-4:    Define a consistent contract for denied external fetches: unresolved external references resolve to empty content on every implementation, unless the org.apache.commons.xml.throwOnUnresolved system property requests rejection. Thanks to Piotr P. Karwasz, Gary Gregory.
-* COMMONSXML-3:    Reduce the shaded footprint by splitting the hardeners and resolver floors into independent entry points. Thanks to Piotr P. Karwasz, Gary Gregory.
+* COMMONSXML-3:    Reduce the shaded footprint by splitting the secure classes and resolver floors into independent entry points. Thanks to Piotr P. Karwasz, Gary Gregory.
 
 Removed
 -------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 8a746f8..86315b2 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -50,7 +50,7 @@ The <action> type attribute can be add, update, fix, or remove.
       <!-- UPDATE -->
       <action type="update" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory" issue="COMMONSXML-1,COMMONSXML-5,COMMONSXML-6,COMMONSXML-7,COMMONSXML-8">Recognize XML implementations by the JAXP features and properties they support instead of by their implementation class name, extending the securing to any compliant implementation.</action>
       <action type="update" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory" issue="COMMONSXML-4">Define a consistent contract for denied external fetches: unresolved external references resolve to empty content on every implementation, unless the org.apache.commons.xml.throwOnUnresolved system property requests rejection.</action>
-      <action type="update" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory" issue="COMMONSXML-3">Reduce the shaded footprint by splitting the secure and resolver floors into independent entry points.</action>
+      <action type="update" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory" issue="COMMONSXML-3">Reduce the shaded footprint by splitting the secure classes and resolver floors into independent entry points.</action>
       <!-- REMOVE -->
       <action type="remove" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory" issue="COMMONSXML-2">Remove the Limits class that applied uniform processing limits across implementations.</action>
     </release>


(commons-xml) 23/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit f777f21e716296b437285f327f81dd7bd46f28d3
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:49:34 2026 -0400

    Javadoc: Use "secure" terminology.
---
 .github/workflows/maven.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 21ef359..5ad729e 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -43,7 +43,7 @@ jobs:
     #     * Semeru 8 and 21     OpenJ9's class library is the most divergent runtime setup-java offers,
     #                           and the most plausible source of surprises in factory lookup and class loading.
     #     * Zulu                Pinned to an old 8 patch level.
-    #                           Verifies the hardening degrades gracefully on a runtime predating the later jdk.xml.* backports.
+    #                           Verifies the securing degrades gracefully on a runtime predating the later jdk.xml.* backports.
     #     * GraalVM             Runs the suite as a native image via the `native-xalan` profile:
     #                           the JAXP providers resolve at build time under the closed-world assumption, a different code path from
     #                           the JVM's run-time ServiceLoader lookup. 25 is the latest GraalVM release.


(commons-xml) 36/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 802c4724473e8e8b5cd3837e225deadfc84fe7ea
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:54:26 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/test/java/org/apache/commons/xml/XPathInputSourceTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/xml/XPathInputSourceTest.java b/src/test/java/org/apache/commons/xml/XPathInputSourceTest.java
index c21aada..423aeac 100644
--- a/src/test/java/org/apache/commons/xml/XPathInputSourceTest.java
+++ b/src/test/java/org/apache/commons/xml/XPathInputSourceTest.java
@@ -61,7 +61,7 @@ void secureXPathEvaluatesPlainDocument() throws Exception {
         // Positive control: the secure pre-parse still evaluates an entity-free document end to end.
         final String result = SecureXPathFactory.newInstance().newXPath().evaluate(EXPRESSION,
                 AttackTestSupport.inputSource(AttackTestSupport.xmlBody("plain text")));
-        assertEquals("plain text", result, "hardened XPath should evaluate a plain document");
+        assertEquals("plain text", result, "secured XPath should evaluate a plain document");
     }
 
     @Test


(commons-xml) 01/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 4cc0062b652970c4ca1ca12f353c8fe02cb9794e
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:31:07 2026 -0400

    Javadoc: Use "secure" terminology.
    
    Same in exception message.
---
 RELEASE-NOTES.txt                                                  | 4 ++--
 src/changes/changes.xml                                            | 6 +++---
 src/main/java/org/apache/commons/xml/SaxonProvider.java            | 2 +-
 src/main/java/org/apache/commons/xml/SecureSchemaFactory.java      | 2 +-
 src/main/java/org/apache/commons/xml/SecureTransformerFactory.java | 2 +-
 src/main/java/org/apache/commons/xml/SecureValidator.java          | 2 +-
 src/site/markdown/index.md                                         | 4 ++--
 7 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt
index 040e37e..2e65496 100644
--- a/RELEASE-NOTES.txt
+++ b/RELEASE-NOTES.txt
@@ -32,7 +32,7 @@ New features
 *                  This is the first release of Apache Commons Secure XML. Thanks to Piotr P. Karwasz, Gary Gregory.
 *                  Add secure-by-default JAXP factory creation via org.apache.commons.xml, donated from the copernik-xml-factory project (https://github.com/copernik-eu/copernik-xml-factory) and covering the stock JDK, Android, Apache Xalan, Apache Xerces, Woodstox, and Saxon-HE. Thanks to Piotr P. Karwasz, Gary Gregory.
 * COMMONSXML-9:    Install a non-removable resolver floor on every resolver channel (EntityResolver, LSResourceResolver, URIResolver, and XMLResolver), routing caller-supplied resolvers through it as allow-lists. Thanks to Piotr P. Karwasz, Gary Gregory.
-*                  Harden the SAXTransformerFactory extension surface (TransformerHandler, TemplatesHandler, and XMLFilter) and TransformerFactory.getAssociatedStylesheet. Thanks to Piotr P. Karwasz, Gary Gregory.
+*                  Secure the SAXTransformerFactory extension surface (TransformerHandler, TemplatesHandler, and XMLFilter) and TransformerFactory.getAssociatedStylesheet. Thanks to Piotr P. Karwasz, Gary Gregory.
 *                  Document the threat model on the project site, including the denied-fetch contract and the supported runtime floor (OpenJDK 8 and Android API 33 or later). Thanks to Piotr P. Karwasz, Jarek Potiuk, Gary Gregory.
 * COMMONSXML-11:   Add GitHub CI builds for Java 26 and 27-EA. Thanks to Gary Gregory, Piotr P. Karwasz.
 
@@ -42,7 +42,7 @@ Fixed Bugs
 * COMMONSXML-10:   Block XInclude (xi:include) href resolution by default, since the JAXP external-access properties do not govern it. Thanks to Ta Duc Thien, Piotr P. Karwasz, Gary Gregory.
 *                  Restore the hardened configuration when a factory or parser is reset() instead of reverting to the implementation defaults. Thanks to Piotr P. Karwasz, Gary Gregory.
 *                  Parse a Source opted in by a caller-supplied URIResolver using a hardened parser. Thanks to Piotr P. Karwasz, Gary Gregory.
-*                  Harden the document parse behind the InputSource-taking XPath evaluation entry points. Thanks to Piotr P. Karwasz, Gary Gregory.
+*                  Secure the document parse behind the InputSource-taking XPath evaluation entry points. Thanks to Piotr P. Karwasz, Gary Gregory.
 
 Changes
 -------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index d4f86d5..9e2f291 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -37,16 +37,16 @@ The <action> type attribute can be add, update, fix, or remove.
       <!-- ADD -->
       <action type="add" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory">Add secure-by-default JAXP factory creation via org.apache.commons.xml, donated from the copernik-xml-factory project (https://github.com/copernik-eu/copernik-xml-factory) and covering the stock JDK, Android, Apache Xalan, Apache Xerces, Woodstox, and Saxon-HE.</action>
       <action type="add" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory" issue="COMMONSXML-9">Install a non-removable resolver floor on every resolver channel (EntityResolver, LSResourceResolver, URIResolver, and XMLResolver), routing caller-supplied resolvers through it as allow-lists.</action>
-      <action type="add" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory">Harden the SAXTransformerFactory extension surface (TransformerHandler, TemplatesHandler, and XMLFilter) and TransformerFactory.getAssociatedStylesheet.</action>
+      <action type="add" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory">Secure the SAXTransformerFactory extension surface (TransformerHandler, TemplatesHandler, and XMLFilter) and TransformerFactory.getAssociatedStylesheet.</action>
       <action type="add" dev="ppkarwasz" due-to="Piotr P. Karwasz, Jarek Potiuk, Gary Gregory">Document the threat model on the project site, including the denied-fetch contract and the supported runtime floor (OpenJDK 8 and Android API 33 or later).</action>
       <action type="add" dev="ppkarwasz" due-to="Gary Gregory, Piotr P. Karwasz" issue="COMMONSXML-11">Add GitHub CI builds for Java 26 and 27-EA.</action>
       <action type="add" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory">Mirror on each factory class every JAXP static factory method, including the Java 9 newDefaultInstance and Java 13 newNSInstance families, all usable on Java 8.</action>
       <!-- FIX -->
       <action type="fix" dev="ppkarwasz" due-to="Ta Duc Thien, Piotr P. Karwasz, Gary Gregory" issue="COMMONSXML-10">Block XInclude (xi:include) href resolution by default, since the JAXP external-access properties do not govern it.</action>
       <action type="fix" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory">Honor jdk.xml.overrideDefaultParser on TrAX, XPath and schema factories that recognize it.</action>
-      <action type="fix" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory">Restore the hardened configuration when a factory or parser is reset() instead of reverting to the implementation defaults.</action>
+      <action type="fix" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory">Restore the secure configuration when a factory or parser is reset() instead of reverting to the implementation defaults.</action>
       <action type="fix" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory">Parse a Source opted in by a caller-supplied URIResolver using a hardened parser.</action>
-      <action type="fix" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory">Harden the document parse behind the InputSource-taking XPath evaluation entry points.</action>
+      <action type="fix" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory">Secure the document parse behind the InputSource-taking XPath evaluation entry points.</action>
       <!-- UPDATE -->
       <action type="update" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory" issue="COMMONSXML-1,COMMONSXML-5,COMMONSXML-6,COMMONSXML-7,COMMONSXML-8">Recognize XML implementations by the JAXP features and properties they support instead of by their implementation class name, extending the hardening to any compliant implementation.</action>
       <action type="update" dev="ppkarwasz" due-to="Piotr P. Karwasz, Gary Gregory" issue="COMMONSXML-4">Define a consistent contract for denied external fetches: unresolved external references resolve to empty content on every implementation, unless the org.apache.commons.xml.throwOnUnresolved system property requests rejection.</action>
diff --git a/src/main/java/org/apache/commons/xml/SaxonProvider.java b/src/main/java/org/apache/commons/xml/SaxonProvider.java
index 551c079..b8d3caf 100644
--- a/src/main/java/org/apache/commons/xml/SaxonProvider.java
+++ b/src/main/java/org/apache/commons/xml/SaxonProvider.java
@@ -46,7 +46,7 @@ final class SaxonProvider {
     /**
      * Sole holder of Saxon symbolic references, so that the outer class verifies without Saxon on the classpath.
      *
-     * <p>{@link SaxonProvider#isSaxon} runs on every harden call, Saxon present or not, and the JVM verifier may load classes eagerly to prove class-typed
+     * <p>{@link SaxonProvider#isSaxon} runs on every secure call, Saxon present or not, and the JVM verifier may load classes eagerly to prove class-typed
      * assignability; keeping every Saxon reference in this nested class defers that loading until a Saxon factory has actually been recognized.</p>
      */
     private static final class SaxonProviderConfigurer {
diff --git a/src/main/java/org/apache/commons/xml/SecureSchemaFactory.java b/src/main/java/org/apache/commons/xml/SecureSchemaFactory.java
index 8a0d40b..7be84ba 100644
--- a/src/main/java/org/apache/commons/xml/SecureSchemaFactory.java
+++ b/src/main/java/org/apache/commons/xml/SecureSchemaFactory.java
@@ -177,7 +177,7 @@ private Source[] secure(final Source[] schemas) throws SAXException {
                     secure[i] = SecureSAXParserFactory.secure(schemas[i], overrideDefaultParser);
                 }
             } catch (final TransformerConfigurationException e) {
-                throw new SAXException("Failed to harden schema source", e);
+                throw new SAXException("Failed to secure schema source", e);
             }
             return secure;
         }
diff --git a/src/main/java/org/apache/commons/xml/SecureTransformerFactory.java b/src/main/java/org/apache/commons/xml/SecureTransformerFactory.java
index 232482a..1a1dd61 100644
--- a/src/main/java/org/apache/commons/xml/SecureTransformerFactory.java
+++ b/src/main/java/org/apache/commons/xml/SecureTransformerFactory.java
@@ -266,7 +266,7 @@ public TemplatesHandler newTemplatesHandler() throws TransformerConfigurationExc
 
         @Override
         public Transformer newTransformer() throws TransformerConfigurationException {
-            // Identity transformer: still parses runtime sources, so wrap it to harden Transformer.transform(Source, Result).
+            // Identity transformer: still parses runtime sources, so wrap it to secure Transformer.transform(Source, Result).
             final Transformer transformer = delegate.newTransformer();
             return transformer == null ? null : new SecureTransformer(transformer, getURIResolver(), emptySource, overrideDefaultParser());
         }
diff --git a/src/main/java/org/apache/commons/xml/SecureValidator.java b/src/main/java/org/apache/commons/xml/SecureValidator.java
index c67e541..6497b2f 100644
--- a/src/main/java/org/apache/commons/xml/SecureValidator.java
+++ b/src/main/java/org/apache/commons/xml/SecureValidator.java
@@ -123,7 +123,7 @@ public void validate(final Source source, final Result result) throws SAXExcepti
         try {
             delegate.validate(SecureSAXParserFactory.secure(source, overrideDefaultParser), result);
         } catch (final TransformerConfigurationException e) {
-            throw new SAXException("Failed to harden source for validation", e);
+            throw new SAXException("Failed to secure source for validation", e);
         }
     }
 }
diff --git a/src/site/markdown/index.md b/src/site/markdown/index.md
index 6f89c87..4b11600 100644
--- a/src/site/markdown/index.md
+++ b/src/site/markdown/index.md
@@ -27,8 +27,8 @@ stock JDK and external JAXP implementations.
 
 ## Why
 
-Any Java library that parses XML has to harden JAXP before handing a factory to user code, and every library ends up
-copy-pasting the same hardening snippet. The snippet is fragile: the attributes and features needed to harden a factory
+Any Java library that parses XML has to secure JAXP before handing a factory to user code, and every library ends up
+copy-pasting the same hardening snippet. The snippet is fragile: the attributes and features needed to secure a factory
 are not standardized, each JAXP implementation exposes a slightly different set, and setting an unknown one throws an
 exception that callers routinely swallow. Writing this block correctly for every implementation is real work, and
 duplicating it across projects means every project owns the maintenance burden on its own.


(commons-xml) 04/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit f093566849828f479c59e94ead501ca14b32d3ae
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:39:43 2026 -0400

    Javadoc: Use "secure" terminology.
---
 pom.xml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/pom.xml b/pom.xml
index 7f33ba3..a21a595 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@ limitations under the License.
   <url>https://commons.apache.org/proper/commons-xml/</url>
   <inceptionYear>2026</inceptionYear>
   <description>Apache Commons Secure XML provides secure-by-default JAXP factory creation, abstracting over
-    implementation-specific XXE hardening differences between the stock JDK and external JAXP implementations
+    implementation-specific XXE securing differences between the stock JDK and external JAXP implementations
     (Android, Apache Xalan, Apache Xerces, Woodstox, Saxon-HE).</description>
   <scm>
     <connection>scm:git:https://gitbox.apache.org/repos/asf/commons-xml.git</connection>
@@ -54,7 +54,7 @@ limitations under the License.
     <!-- OSGi bundle metadata: override commons-parent's org.apache.commons.* defaults. -->
     <commons.osgi.symbolicName>org.apache.commons.xml</commons.osgi.symbolicName>
     <commons.osgi.export>org.apache.commons.xml.*;version=${project.version};-noimport:=true</commons.osgi.export>
-    <!-- The negation drops the JDK-internal package bnd infers from the reflective Java 8 fallback in HardeningXMLInputFactory.newDefaultFactory(). -->
+    <!-- The negation drops the JDK-internal package bnd infers from the reflective Java 8 fallback in SecureXMLInputFactory.newDefaultFactory(). -->
     <commons.osgi.import>
       !com.sun.xml.internal.stream,
       net.sf.saxon.*;resolution:=optional,
@@ -72,7 +72,7 @@ limitations under the License.
     <commons.woodstox.version>7.1.1</commons.woodstox.version>
     <commons.xalan.version>2.7.3</commons.xalan.version>
     <commons.xerces.version>2.12.2</commons.xerces.version>
-    <!-- Test-only: computes each hardener's shade closure, mirroring maven-shade minimizeJar, for ShadingFootprintTest. -->
+    <!-- Test-only: computes each secure class' shade closure, mirroring maven-shade minimizeJar, for ShadingFootprintTest. -->
     <commons.jdependency.version>2.16</commons.jdependency.version>
   </properties>
   <dependencies>
@@ -92,7 +92,7 @@ limitations under the License.
       <artifactId>junit-jupiter</artifactId>
       <scope>test</scope>
     </dependency>
-    <!-- Reads the compiled classes to compute each hardener's transitive class closure (the same computation maven-shade minimizeJar performs). -->
+    <!-- Reads the compiled classes to compute each secure class' transitive class closure (the same computation maven-shade minimizeJar performs). -->
     <dependency>
       <groupId>org.vafer</groupId>
       <artifactId>jdependency</artifactId>
@@ -163,7 +163,7 @@ limitations under the License.
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
         <!--
-          Make the underlying JAXP factories as permissive as the JDK allows. Hardened factories produced by
+          Make the underlying JAXP factories as permissive as the JDK allows. Secure factories produced by
           org.apache.commons.xml should still block every attack the test suite throws at them; if a test passes only
           because the JDK's defaults intervened, we want it to fail here so the gap shows up.
 
@@ -333,7 +333,7 @@ limitations under the License.
               <reportsDirectory>${project.build.directory}/surefire-reports/jdk-xerces</reportsDirectory>
               <!-- The only cell pairing the JDK TrAX and XPath implementations with a third-party ServiceLoader parser: Xerces resolves the
                    SAXParserFactory/DocumentBuilderFactory lookups (and the SchemaFactory one, which is why the schema-group FODP tests pin the JDK
-                   implementation via newDefaultInstance), so jdk.xml.overrideDefaultParser genuinely decides which parser performs the hardened
+                   implementation via newDefaultInstance), so jdk.xml.overrideDefaultParser genuinely decides which parser performs the secure
                    source rewrites. -->
               <groups>trax,xpath,schema</groups>
               <additionalClasspathDependencies>


(commons-xml) 15/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 06e6fe72ddfac2e0a843a800d960e2fcab699500
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:45:02 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/main/java/org/apache/commons/xml/SecureSchemaFactory.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/xml/SecureSchemaFactory.java b/src/main/java/org/apache/commons/xml/SecureSchemaFactory.java
index 7be84ba..a8bdc11 100644
--- a/src/main/java/org/apache/commons/xml/SecureSchemaFactory.java
+++ b/src/main/java/org/apache/commons/xml/SecureSchemaFactory.java
@@ -163,7 +163,7 @@ private boolean overrideDefaultParser() {
         /**
          * Secures every schema source through {@link SecureSAXParserFactory#secure(Source, boolean)}.
          *
-         * @param schemas the schema sources to harden; must not be {@code null}.
+         * @param schemas the schema sources to secure; must not be {@code null}.
          * @return a new array of secure sources.
          * @throws SAXException if any source cannot be secure.
          * @throws FactoryConfigurationError Thrown from a factory in case of a {@link java.util.ServiceConfigurationError service
@@ -268,7 +268,7 @@ public static SchemaFactory newInstance(final String schemaLanguage, final Strin
      * every implementation. The reader used to parse schema and instance documents is secure separately, through
      * {@link SecureSAXParserFactory#secure(javax.xml.transform.Source, boolean)}.</p>
      *
-     * @param factory the factory to harden; never {@code null}.
+     * @param factory the factory to secure; never {@code null}.
      * @return a secure factory.
      */
     static SchemaFactory secure(final SchemaFactory factory) {


(commons-xml) 25/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 5c4fdf9df6d720ba469966a0480e7b4dc246ed2f
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:53:30 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/main/java/org/apache/commons/xml/SaxonProvider.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/xml/SaxonProvider.java b/src/main/java/org/apache/commons/xml/SaxonProvider.java
index b8d3caf..83632e3 100644
--- a/src/main/java/org/apache/commons/xml/SaxonProvider.java
+++ b/src/main/java/org/apache/commons/xml/SaxonProvider.java
@@ -127,7 +127,7 @@ static TransformerFactory configure(final TransformerFactory factory) {
         try {
             return SaxonProviderConfigurer.configure(factory);
         } catch (final ClassCastException e) {
-            // A Saxon-package factory the configurer cannot lock down; refuse it rather than returning it unhardened.
+            // A Saxon-package factory the configurer cannot lock down; refuse it rather than returning it unsecured.
             throw new SecureException("Unsupported Saxon TransformerFactory " + factory.getClass().getName(), e);
         }
     }
@@ -136,7 +136,7 @@ static XPathFactory configure(final XPathFactory factory) {
         try {
             return SaxonProviderConfigurer.configure(factory);
         } catch (final ClassCastException e) {
-            // A Saxon-package factory the configurer cannot lock down; refuse it rather than returning it unhardened.
+            // A Saxon-package factory the configurer cannot lock down; refuse it rather than returning it unsecured.
             throw new SecureException("Unsupported Saxon XPathFactory " + factory.getClass().getName(), e);
         }
     }


(commons-xml) 11/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 121d8e7cb6bf15a29b268059b2eb107612b32bdf
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:41:46 2026 -0400

    Javadoc: Use "secure" terminology.
---
 .../java/org/apache/commons/xml/SecureDocumentBuilderFactory.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/xml/SecureDocumentBuilderFactory.java b/src/main/java/org/apache/commons/xml/SecureDocumentBuilderFactory.java
index cbee985..16172b2 100644
--- a/src/main/java/org/apache/commons/xml/SecureDocumentBuilderFactory.java
+++ b/src/main/java/org/apache/commons/xml/SecureDocumentBuilderFactory.java
@@ -53,7 +53,7 @@ public final class SecureDocumentBuilderFactory {
      * <p>
      * Wraps each produced builder in a {@link SecureDocumentBuilder}; required when the underlying factory carries no resolver of its own and does not honor
      * JAXP 1.5 {@code ACCESS_EXTERNAL_*} (e.g. the external Xerces distribution). A caller-set resolver is routed through the floor rather than replacing it. Kept
-     * as a standalone wrapper so any hardener can reuse the floor.
+     * as a standalone wrapper so any secure class can reuse the floor.
      * </p>
      *
      * @see org.apache.commons.xml
@@ -323,7 +323,7 @@ public static DocumentBuilderFactory newNSInstance(final String factoryClassName
      *         needed here. A caller can chain its own resolver onto the floor to allow-list resources, but cannot remove it.</li>
      * </ul>
      *
-     * @param factory The factory to harden.
+     * @param factory The factory to secure.
      * @return A new secure factory or the original factory, as-is, if it is a known Android factory.
      * @throws SecureException Thrown if a (non-Android) factory cannot support the secure processing feature {@link XMLConstants#FEATURE_SECURE_PROCESSING}.
      */
@@ -343,7 +343,7 @@ static DocumentBuilderFactory secure(final DocumentBuilderFactory factory) {
     /**
      * Sets a feature on the given factory, throwing a {@link SecureException} if the implementation does not recognize it.
      *
-     * @param factory The factory to harden.
+     * @param factory The factory to secure.
      * @param feature The feature to set.
      * @param value   The value to set.
      * @throws SecureException   Thrown if this factory or the {@code XPath}s it creates cannot support this feature.


(commons-xml) 21/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 9d649193545a39ea463b8b5bc5f1f4f56d5257b0
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:48:16 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/test/java/org/apache/commons/xml/TransformerHandlerTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/xml/TransformerHandlerTest.java b/src/test/java/org/apache/commons/xml/TransformerHandlerTest.java
index 9161b07..091d05a 100644
--- a/src/test/java/org/apache/commons/xml/TransformerHandlerTest.java
+++ b/src/test/java/org/apache/commons/xml/TransformerHandlerTest.java
@@ -35,7 +35,7 @@
 /**
  * {@link TransformerHandler} products of the secure factory sit on the resolver floor: a stylesheet's runtime {@code document()} resolves to empty content
  * whether the transform runs through the handler's SAX events or through the {@link TransformerHandler#getTransformer()} bypass. The unconfigured control
- * proves the vector leaks without the hardening. The {@code Templates} overload doubles as a regression test for handing the factory a wrapped
+ * proves the vector leaks without the securing. The {@code Templates} overload doubles as a regression test for handing the factory a wrapped
  * {@code Templates} (implementations cast its {@code newTransformer()} to their own type).
  */
 @Tag("trax")


(commons-xml) 28/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 7d3fdf312a1b2ac27639af28155e9ef19e0722f3
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:53:42 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/main/java/org/apache/commons/xml/SecureSAXParserFactory.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/xml/SecureSAXParserFactory.java b/src/main/java/org/apache/commons/xml/SecureSAXParserFactory.java
index 9dfb7a7..d12b188 100644
--- a/src/main/java/org/apache/commons/xml/SecureSAXParserFactory.java
+++ b/src/main/java/org/apache/commons/xml/SecureSAXParserFactory.java
@@ -48,7 +48,7 @@
  * EntityResolver} on the {@link org.xml.sax.XMLReader} that allow-lists them; any href the resolver does not explicitly allow stays blocked.
  * </p>
  * <p>
- * Not a {@link SAXParserFactory} itself, so none of the JAXP static factory methods is inherited: a caller cannot reach a non-hardened factory through this class
+ * Not a {@link SAXParserFactory} itself, so none of the JAXP static factory methods is inherited: a caller cannot reach a non-secured factory through this class
  * by calling an inherited method such as {@code newDefaultInstance()}. The secure factories are instances of a nested, non-public wrapper class.
  * </p>
  *


(commons-xml) 02/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit c4b25bd2c420c2319a56ed545c1fc2751cf0e6ac
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:39:23 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/test/java/org/apache/commons/xml/XMLFilterTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/xml/XMLFilterTest.java b/src/test/java/org/apache/commons/xml/XMLFilterTest.java
index 0e220c5..fde4ea9 100644
--- a/src/test/java/org/apache/commons/xml/XMLFilterTest.java
+++ b/src/test/java/org/apache/commons/xml/XMLFilterTest.java
@@ -37,7 +37,7 @@
 /**
  * {@link XMLFilter} products of the secure factory: the input document is parsed by a secure reader (never a self-provisioned permissive one), and the
  * transformation runs on the resolver floor, so neither an external entity in the input nor a stylesheet's runtime {@code document()} fetches. The
- * unconfigured controls prove both vectors leak without the hardening. The {@code Templates} overload doubles as a regression test for handing the factory a
+ * unconfigured controls prove both vectors leak without the securing. The {@code Templates} overload doubles as a regression test for handing the factory a
  * wrapped {@code Templates}.
  */
 @Tag("trax")


(commons-xml) 20/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 8e4b5b1ab1151b3d6fc89082e22e1c9462c614e9
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:48:04 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/test/java/org/apache/commons/xml/XIncludeTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/xml/XIncludeTest.java b/src/test/java/org/apache/commons/xml/XIncludeTest.java
index 19a469a..f883ad1 100644
--- a/src/test/java/org/apache/commons/xml/XIncludeTest.java
+++ b/src/test/java/org/apache/commons/xml/XIncludeTest.java
@@ -56,7 +56,7 @@ class XIncludeTest {
     /**
      * Allow-lists the two fixture URLs, returning the appropriate in-memory content for each: {@link #RESOLVED_MARKER}
      * wrapped as XML for {@link #REFERENCED_XML}, and as plain text for {@link #REFERENCED_TEXT}. Anything else returns
-     * {@code null} so the hardening's ignore-all floor empties it. Mirrors a caller allow-listing trusted resources.
+     * {@code null} so the securing's ignore-all floor empties it. Mirrors a caller allow-listing trusted resources.
      */
     private static final class AllowListResolver implements EntityResolver {
 
@@ -85,7 +85,7 @@ public InputSource resolveEntity(final String publicId, final String systemId) {
     /** Content the allow-list resolver returns for an allowed include; its presence proves the caller's resolver was consulted. */
     private static final String RESOLVED_MARKER = "XINCLUDE-RESOLVED-905bbbce-16ee-4a0c-b165-d1f8c663934c";
 
-    /** Resolver that resolves nothing, so the hardening's ignore-all floor must empty every lookup and never leak. */
+    /** Resolver that resolves nothing, so the securing's ignore-all floor must empty every lookup and never leak. */
     private static final EntityResolver NO_OP_RESOLVER = (publicId, systemId) -> null;
 
     /**


(commons-xml) 12/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit d4b8741a8b5ba011e4bffc4b363a4c1270dd88f4
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:42:18 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/main/java/org/apache/commons/xml/SecureSAXParser.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/xml/SecureSAXParser.java b/src/main/java/org/apache/commons/xml/SecureSAXParser.java
index 3bd88db..0b3b1b9 100644
--- a/src/main/java/org/apache/commons/xml/SecureSAXParser.java
+++ b/src/main/java/org/apache/commons/xml/SecureSAXParser.java
@@ -33,7 +33,7 @@
  * {@link SAXParser} that exposes a secure {@link XMLReader} and a matching SAX 1 {@link Parser}.
  *
  * <p>Both views are produced from the same secure reader, so a caller reaching the parser through either the SAX 2 ({@link #getXMLReader()}) or the legacy
- * SAX 1 ({@link #getParser()}) path gets the same hardening. The SAX 1 view matters because some consumers, such as Xalan's identity transformer, still ask
+ * SAX 1 ({@link #getParser()}) path gets the same securing. The SAX 1 view matters because some consumers, such as Xalan's identity transformer, still ask
  * for a {@link Parser}.</p>
  *
  * <p>The secure reader is computed lazily on first access and cached: secure an {@link XMLReader} can install a new wrapper (Android's Expat path), so
@@ -104,7 +104,7 @@ public boolean isXIncludeAware() {
     @Override
     public void reset() {
         delegate.reset();
-        // The JAXP reset contract reverts the delegate to its just-created state, which strips the post-creation reader hardening.
+        // The JAXP reset contract reverts the delegate to its just-created state, which strips the post-creation reader securing.
         // We reset the cached readers, so securing can be applied again.
         secureXMLReader = null;
         secureParser = null;


(commons-xml) 33/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 126f9b77ac2491409027235df4ff0b782d6ba155
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:54:10 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/main/java/org/apache/commons/xml/SecureXPathFactory.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/xml/SecureXPathFactory.java b/src/main/java/org/apache/commons/xml/SecureXPathFactory.java
index 0ae024d..b2494b0 100644
--- a/src/main/java/org/apache/commons/xml/SecureXPathFactory.java
+++ b/src/main/java/org/apache/commons/xml/SecureXPathFactory.java
@@ -39,7 +39,7 @@
  * input document is built through a secure, namespace-aware {@link javax.xml.parsers.DocumentBuilder} instead of the engine's internal parser.
  * </p>
  * <p>
- * Not a {@link XPathFactory} itself, so none of the JAXP static factory methods is inherited: a caller cannot reach a non-hardened factory through this class
+ * Not a {@link XPathFactory} itself, so none of the JAXP static factory methods is inherited: a caller cannot reach a non-secured factory through this class
  * by calling an inherited method such as {@code newDefaultInstance()}. The secure factories are instances of a nested, non-public wrapper class.
  * </p>
  *


(commons-xml) 22/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit ffc5fcedc16f47b3fabe5ab58de96eb87acbac71
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:48:33 2026 -0400

    Javadoc: Use "secure" terminology.
---
 RELEASE-NOTES.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt
index 2e65496..690cf11 100644
--- a/RELEASE-NOTES.txt
+++ b/RELEASE-NOTES.txt
@@ -20,7 +20,7 @@ Apache Commons Secure XML 1.0.0 Release Notes
 The Apache Commons Secure XML team is pleased to announce the release of Apache Commons Secure XML 1.0.0.
 
 Apache Commons Secure XML provides secure-by-default JAXP factory creation, abstracting over
-implementation-specific XXE hardening differences between the stock JDK and external JAXP implementations
+implementation-specific XXE securing differences between the stock JDK and external JAXP implementations
 (Android, Apache Xalan, Apache Xerces, Woodstox, Saxon-HE).
 
 First release, requires Java 8 or above.
@@ -40,8 +40,8 @@ Fixed Bugs
 ----------
 
 * COMMONSXML-10:   Block XInclude (xi:include) href resolution by default, since the JAXP external-access properties do not govern it. Thanks to Ta Duc Thien, Piotr P. Karwasz, Gary Gregory.
-*                  Restore the hardened configuration when a factory or parser is reset() instead of reverting to the implementation defaults. Thanks to Piotr P. Karwasz, Gary Gregory.
-*                  Parse a Source opted in by a caller-supplied URIResolver using a hardened parser. Thanks to Piotr P. Karwasz, Gary Gregory.
+*                  Restore the secured configuration when a factory or parser is reset() instead of reverting to the implementation defaults. Thanks to Piotr P. Karwasz, Gary Gregory.
+*                  Parse a Source opted in by a caller-supplied URIResolver using a secured parser. Thanks to Piotr P. Karwasz, Gary Gregory.
 *                  Secure the document parse behind the InputSource-taking XPath evaluation entry points. Thanks to Piotr P. Karwasz, Gary Gregory.
 
 Changes


(commons-xml) 31/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 544f5c32f4f9ce39d06c276e136d2bff543cb2c1
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:53:58 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/main/java/org/apache/commons/xml/SecureXMLFilter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/xml/SecureXMLFilter.java b/src/main/java/org/apache/commons/xml/SecureXMLFilter.java
index 50c7180..56c294b 100644
--- a/src/main/java/org/apache/commons/xml/SecureXMLFilter.java
+++ b/src/main/java/org/apache/commons/xml/SecureXMLFilter.java
@@ -37,7 +37,7 @@
  * {@link XMLFilter} that transforms the parsed input through a {@link SecureTemplates} and emits the result as SAX events.
  *
  * <p>Composed from the library's own wrappers instead of delegating to the implementation's filter, because the implementation filters self-provision an
- * unhardened reader for the input (the stock JDK's does so as early as {@code setContentHandler}) and cast a supplied {@link javax.xml.transform.Templates} to
+ * unsecured reader for the input (the stock JDK's does so as early as {@code setContentHandler}) and cast a supplied {@link javax.xml.transform.Templates} to
  * their own type, which a wrapped Templates is not. Here the input is parsed by the parent reader, a secure one installed on first {@code parse} when the
  * caller has not set a parent (a caller-set parent is trusted configuration, used as-is), and the transformation runs on a {@link SecureTransformer}, so
  * runtime {@code document()} sits on the resolver floor.</p>


(commons-xml) 10/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 0426ca84d0953ec2da970704cf6765a4c4bbe135
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:41:08 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/test/java/org/apache/commons/xml/DoctypeOnlyTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/xml/DoctypeOnlyTest.java b/src/test/java/org/apache/commons/xml/DoctypeOnlyTest.java
index 15e267a..55fa6fc 100644
--- a/src/test/java/org/apache/commons/xml/DoctypeOnlyTest.java
+++ b/src/test/java/org/apache/commons/xml/DoctypeOnlyTest.java
@@ -26,7 +26,7 @@
  * factories.
  *
  * <p>The SYSTEM identifier points at a deliberately bogus URL ({@code http://invalid.example.invalid/...}) under the IANA-reserved {@code .invalid} TLD: any
- * attempt to fetch it would raise a network error long before the test could complete, so a passing test proves the parser did not even try. The hardening
+ * attempt to fetch it would raise a network error long before the test could complete, so a passing test proves the parser did not even try. The securing
  * contract being verified is "skip the external DTD silently when nothing in the body needs it" rather than "reject every DOCTYPE".</p>
  */
 class DoctypeOnlyTest {


(commons-xml) 05/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit e7da7331bf0e5a149e3182c3eb01524c9c88a0ad
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:39:49 2026 -0400

    Javadoc: Use "secure" terminology.
---
 AGENTS.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/AGENTS.md b/AGENTS.md
index 73692e9..bad5337 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -36,7 +36,7 @@ Guidance for AI coding agents working in this repository.
      align intermediate lines with a single leading ` * `.
    - The first sentence is a short summary fragment.
      It is the only part that appears in class/method index listings, so keep it self-contained.
-     Details (what is hardened, thread-safety, edge cases) belong in subsequent paragraphs, not bolted onto the summary.
+     Details (what is secured, thread-safety, edge cases) belong in subsequent paragraphs, not bolted onto the summary.
    - Separate paragraphs with a blank `*` line.
      Prefix every paragraph *except the first* with a `<p>` tag at the start of the first word.
      **Do** close with `</p>`.


(commons-xml) 26/36: Javadoc: Use "secure" terminology.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 805a3d54d06e41905b626cee9527b2ecfda6f25c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 28 17:53:34 2026 -0400

    Javadoc: Use "secure" terminology.
---
 src/main/java/org/apache/commons/xml/SecureDocumentBuilderFactory.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/xml/SecureDocumentBuilderFactory.java b/src/main/java/org/apache/commons/xml/SecureDocumentBuilderFactory.java
index 16172b2..39db7c3 100644
--- a/src/main/java/org/apache/commons/xml/SecureDocumentBuilderFactory.java
+++ b/src/main/java/org/apache/commons/xml/SecureDocumentBuilderFactory.java
@@ -40,7 +40,7 @@
  * stays blocked.
  * </p>
  * <p>
- * Not a {@link DocumentBuilderFactory} itself, so none of the JAXP static factory methods is inherited: a caller cannot reach a non-hardened factory through this class
+ * Not a {@link DocumentBuilderFactory} itself, so none of the JAXP static factory methods is inherited: a caller cannot reach a non-secured factory through this class
  * by calling an inherited method such as {@code newDefaultInstance()}. The secure factories are instances of a nested, non-public wrapper class.
  * </p>
  *