[java-shib-shared] branch maint-9.1 updated: Add NoOpHttpServletRequestValidator.

Brent Putman putmanb at georgetown.edu
Fri Mar 21 18:50:21 UTC 2025


This is an automated email from the git hooks/post-receive script.

putmanb pushed a commit to branch maint-9.1
in repository java-shib-shared.

View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=0609db5a1666fdae31cb0f7afebbf5112efaab85

The following commit(s) were added to refs/heads/maint-9.1 by this push:
     new 0609db5a Add NoOpHttpServletRequestValidator.
0609db5a is described below

commit 0609db5a1666fdae31cb0f7afebbf5112efaab85
Author: Brent Putman <putmanb at georgetown.edu>
AuthorDate: Fri Mar 21 14:49:05 2025 -0400

    Add NoOpHttpServletRequestValidator.
---
 .../impl/NoOpHttpServletRequestValidator.java      | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/shib-networking/src/main/java/net/shibboleth/shared/servlet/impl/NoOpHttpServletRequestValidator.java b/shib-networking/src/main/java/net/shibboleth/shared/servlet/impl/NoOpHttpServletRequestValidator.java
new file mode 100644
index 00000000..b611ea6f
--- /dev/null
+++ b/shib-networking/src/main/java/net/shibboleth/shared/servlet/impl/NoOpHttpServletRequestValidator.java
@@ -0,0 +1,34 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.shibboleth.shared.servlet.impl;
+
+import javax.annotation.Nonnull;
+
+import jakarta.servlet.ServletException;
+import jakarta.servlet.http.HttpServletRequest;
+import net.shibboleth.shared.servlet.HttpServletRequestValidator;
+
+/**
+ * Implementation of {@link HttpServletRequestValidator} which is always valid.
+ */
+public class NoOpHttpServletRequestValidator implements HttpServletRequestValidator {
+
+    /** {@inheritDoc} */
+    @Override
+    public void validate(@Nonnull final HttpServletRequest request) throws ServletException {
+        // Intentionally unimplemented
+    }
+
+}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list