[java-plugin-shibd-saml] branch main updated: Implement setting pending further review.

Codeberg noreply at shibboleth.net
Thu Apr 2 18:19:38 UTC 2026


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

codeberg pushed a commit to branch main
in repository java-plugin-shibd-saml.

View the commit online:
https://codeberg.org/Shibboleth/java-plugin-shibd-saml/commit/28d4a0279203a814e4e522755ae5e4a380268d0d

The following commit(s) were added to refs/heads/main by this push:
     new 28d4a02  Implement setting pending further review.
28d4a02 is described below

commit 28d4a0279203a814e4e522755ae5e4a380268d0d
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Apr 2 14:19:29 2026 -0400

    Implement setting pending further review.
---
 .../impl/AbstractSAML2ProfileConfiguration.java    | 24 +++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/sp-saml-impl/src/main/java/net/shibboleth/sp/saml/saml2/profile/config/impl/AbstractSAML2ProfileConfiguration.java b/sp-saml-impl/src/main/java/net/shibboleth/sp/saml/saml2/profile/config/impl/AbstractSAML2ProfileConfiguration.java
index 2f526ed..ae0239d 100644
--- a/sp-saml-impl/src/main/java/net/shibboleth/sp/saml/saml2/profile/config/impl/AbstractSAML2ProfileConfiguration.java
+++ b/sp-saml-impl/src/main/java/net/shibboleth/sp/saml/saml2/profile/config/impl/AbstractSAML2ProfileConfiguration.java
@@ -34,6 +34,9 @@ import org.opensaml.profile.context.ProfileRequestContext;
 public abstract class AbstractSAML2ProfileConfiguration extends AbstractConditionalProfileConfiguration implements
         SAML2ProfileConfiguration {
     
+    /** Predicate used to determine if request signatures should be ignored. Default returns false. */
+    @Nonnull private Predicate<ProfileRequestContext> ignoreRequestSignaturesPredicate;
+    
     /** Predicate used to determine if the generated request should be signed. Default returns false. */
     @Nonnull private Predicate<ProfileRequestContext> signRequestsPredicate;
 
@@ -58,6 +61,7 @@ public abstract class AbstractSAML2ProfileConfiguration extends AbstractConditio
     public AbstractSAML2ProfileConfiguration(@Nonnull @NotEmpty final String profileId) {
         super(profileId);
 
+        ignoreRequestSignaturesPredicate = PredicateSupport.alwaysFalse();
         signRequestsPredicate = PredicateSupport.alwaysFalse();
         signResponsesPredicate = PredicateSupport.alwaysFalse();
         encryptionOptionalPredicate = PredicateSupport.alwaysFalse();
@@ -68,7 +72,25 @@ public abstract class AbstractSAML2ProfileConfiguration extends AbstractConditio
     
     /** {@inheritDoc} */
     public boolean isIgnoreRequestSignatures(@Nullable ProfileRequestContext profileRequestContext) {
-        throw new UnsupportedOperationException("ignoreRequestSignatures is unsupported");
+        return ignoreRequestSignaturesPredicate.test(profileRequestContext);
+    }
+    
+    /**
+     * Set whether request signatures should be ignored.
+     * 
+     * @param flag flag to set
+     */
+    public void setIgnoreRequestSignatures(final boolean flag) {
+        ignoreRequestSignaturesPredicate = flag ? PredicateSupport.alwaysTrue() : PredicateSupport.alwaysFalse();
+    }
+    
+    /**
+     * Set the predicate used to determine whether request signatures should be ignored.
+     * 
+     * @param predicate condition to set
+     */
+    public void setIgnoreRequestSignaturesPredicate(@Nonnull final Predicate<ProfileRequestContext> predicate) {
+        ignoreRequestSignaturesPredicate = Constraint.isNotNull(predicate, "Condition cannot be null");
     }
 
     /** {@inheritDoc} */

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


More information about the commits mailing list