[java-opensaml] branch main updated: JSATTR-6: SAML AttributeQuery DataConnector
Brent Putman
putmanb at georgetown.edu
Fri Nov 7 01:24:25 UTC 2025
This is an automated email from the git hooks/post-receive script.
putmanb pushed a commit to branch main
in repository java-opensaml.
View the commit online:
https://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=3b9fc2685059eba171935e534fbc6e9de6627ade
The following commit(s) were added to refs/heads/main by this push:
new 3b9fc2685 JSATTR-6: SAML AttributeQuery DataConnector
3b9fc2685 is described below
commit 3b9fc2685059eba171935e534fbc6e9de6627ade
Author: Brent Putman <putmanb at georgetown.edu>
AuthorDate: Thu Nov 6 20:21:32 2025 -0500
JSATTR-6: SAML AttributeQuery DataConnector
Add a Predicate impl needed for user with the InOutOperationContext
version of the DefaultAssertionValidationContextBuilder.
---
.../logic/InboundMessageSignedPredicate.java | 57 ++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/common/messaging/logic/InboundMessageSignedPredicate.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/common/messaging/logic/InboundMessageSignedPredicate.java
new file mode 100644
index 000000000..a2019f4f2
--- /dev/null
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/common/messaging/logic/InboundMessageSignedPredicate.java
@@ -0,0 +1,57 @@
+/*
+ * 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 org.opensaml.saml.common.messaging.logic;
+
+import java.util.function.Predicate;
+
+import javax.annotation.Nullable;
+
+import org.opensaml.messaging.context.InOutOperationContext;
+import org.opensaml.messaging.context.MessageContext;
+import org.opensaml.saml.common.binding.SAMLBindingSupport;
+
+/**
+ * A predicate which evaluates whether an inbound SAML message is signed.
+ */
+public class InboundMessageSignedPredicate implements Predicate<InOutOperationContext> {
+
+ /** Flag indicating whether the presence of a non-null {@link org.opensaml.xmlsec.signature.Signature}
+ * member satisfies the evaluation. */
+ private boolean presenceSatisfies;
+
+ /**
+ * Set whether the presence of a non-null {@link org.opensaml.xmlsec.signature.Signature}
+ * member satisfies the evaluation.
+ *
+ * @param flag whether the presence of a non-null {@link org.opensaml.xmlsec.signature.Signature} is considered
+ */
+ public void setPresenceSatisfies(final boolean flag) {
+ presenceSatisfies = flag;
+ }
+
+ /** {@inheritDoc} */
+ public boolean test(@Nullable final InOutOperationContext input) {
+
+ if (input != null) {
+ final MessageContext mc = input.getInboundMessageContext();
+ if (mc != null) {
+ return SAMLBindingSupport.isMessageSigned(mc, presenceSatisfies);
+ }
+ }
+
+ return false;
+ }
+
+}
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list