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 20c99f7adf04ab9fa79d430617181a65909687c5
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Aug 28 13:21:59 2026 -0400

    Rename HardeningValidatorHandler to SecureValidatorHandler.
---
 src/main/java/org/apache/commons/xml/SecureSchema.java                | 4 ++--
 .../{HardeningValidatorHandler.java => SecureValidatorHandler.java}   | 4 ++--
 src/test/java/org/apache/commons/xml/ShadingFootprintTest.java        | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/apache/commons/xml/SecureSchema.java 
b/src/main/java/org/apache/commons/xml/SecureSchema.java
index 745ed4e..0815d18 100644
--- a/src/main/java/org/apache/commons/xml/SecureSchema.java
+++ b/src/main/java/org/apache/commons/xml/SecureSchema.java
@@ -26,7 +26,7 @@
 /**
  * {@link Schema} wrapper that hardens 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#harden(javax.xml.transform.Source, boolean)} and 
installs the resolver
- * floor), and each {@link ValidatorHandler} is wrapped in a {@link 
HardeningValidatorHandler} that keeps the same ignore-all resolver floor so
+ * 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.
  */
 final class SecureSchema extends Schema {
@@ -57,6 +57,6 @@ public Validator newValidator() {
 
     @Override
     public ValidatorHandler newValidatorHandler() {
-        return new HardeningValidatorHandler(delegate.newValidatorHandler());
+        return new SecureValidatorHandler(delegate.newValidatorHandler());
     }
 }
diff --git 
a/src/main/java/org/apache/commons/xml/HardeningValidatorHandler.java 
b/src/main/java/org/apache/commons/xml/SecureValidatorHandler.java
similarity index 97%
rename from src/main/java/org/apache/commons/xml/HardeningValidatorHandler.java
rename to src/main/java/org/apache/commons/xml/SecureValidatorHandler.java
index 5961b6e..89e361b 100644
--- a/src/main/java/org/apache/commons/xml/HardeningValidatorHandler.java
+++ b/src/main/java/org/apache/commons/xml/SecureValidatorHandler.java
@@ -37,7 +37,7 @@
  * <p>Blocks {@code xsi:schemaLocation} resolution during SAX-driven 
validation. A caller-set resolver is routed through a {@link
  * FallbackIgnoreLSResourceResolver} rather than replacing the floor, so a 
schema the caller does not resolve resolves to empty instead of being 
fetched.</p>
  */
-final class HardeningValidatorHandler extends ValidatorHandler {
+final class SecureValidatorHandler extends ValidatorHandler {
 
     private final ValidatorHandler delegate;
 
@@ -49,7 +49,7 @@ final class HardeningValidatorHandler extends 
ValidatorHandler {
      * @param delegate the delegate to wrap; must not be {@code null}.
      * @throws NullPointerException if {@code delegate} is {@code null}.
      */
-    HardeningValidatorHandler(final ValidatorHandler delegate) {
+    SecureValidatorHandler(final ValidatorHandler delegate) {
         this.delegate = Objects.requireNonNull(delegate, "delegate");
         delegate.setResourceResolver(floor);
     }
diff --git a/src/test/java/org/apache/commons/xml/ShadingFootprintTest.java 
b/src/test/java/org/apache/commons/xml/ShadingFootprintTest.java
index 39a0b6c..125372e 100644
--- a/src/test/java/org/apache/commons/xml/ShadingFootprintTest.java
+++ b/src/test/java/org/apache/commons/xml/ShadingFootprintTest.java
@@ -165,7 +165,7 @@ class ShadingFootprintTest {
             "SecureSchemaFactory$1",
             "SecureSchemaFactory$Wrapper",
             "SecureValidator",
-            "HardeningValidatorHandler",
+            "SecureValidatorHandler",
             "HardeningXMLReader");
     // @formatter:on
 

Reply via email to