[java-idp-plugin-oidc-op-oidfed] 04/04: Add missing call to checkSetterPreconditions()

Codeberg noreply at shibboleth.net
Thu Oct 1 14:59:29 UTC 2026


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

codeberg pushed a commit to branch main
in repository java-idp-plugin-oidc-op-oidfed.

View the commit online:
https://codeberg.org/Shibboleth/java-idp-plugin-oidc-op-oidfed/commit/cf2ede619bec0cad0b6b334e4e80f5aacb0c0d32

commit cf2ede619bec0cad0b6b334e4e80f5aacb0c0d32
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Thu Oct 1 17:58:51 2026 +0300

    Add missing call to checkSetterPreconditions()
---
 .../oidc/op/oidfed/profile/impl/ValidateProvidedEntityConfiguration.java | 1 +
 .../plugin/oidc/op/oidfed/profile/impl/ValidateProvidedTrustChain.java   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/idp-oidfed-op-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/oidfed/profile/impl/ValidateProvidedEntityConfiguration.java b/idp-oidfed-op-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/oidfed/profile/impl/ValidateProvidedEntityConfiguration.java
index 8158b01..3858c12 100644
--- a/idp-oidfed-op-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/oidfed/profile/impl/ValidateProvidedEntityConfiguration.java
+++ b/idp-oidfed-op-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/oidfed/profile/impl/ValidateProvidedEntityConfiguration.java
@@ -64,6 +64,7 @@ public class ValidateProvidedEntityConfiguration extends AbstractProfileAction {
      */
     public void setProvidedEntityConfigurationLookupStrategy(
             @Nonnull final Function<ProfileRequestContext, EntityStatement<?>> strategy) {
+        checkSetterPreconditions();
         providedEntityConfigurationLookupStrategy =
                 Constraint.isNotNull(strategy, "ProvidedEntityConfigurationLookupStrategy cannot be null");
     }
diff --git a/idp-oidfed-op-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/oidfed/profile/impl/ValidateProvidedTrustChain.java b/idp-oidfed-op-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/oidfed/profile/impl/ValidateProvidedTrustChain.java
index 8a40d65..ee24179 100644
--- a/idp-oidfed-op-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/oidfed/profile/impl/ValidateProvidedTrustChain.java
+++ b/idp-oidfed-op-impl/src/main/java/net/shibboleth/idp/plugin/oidc/op/oidfed/profile/impl/ValidateProvidedTrustChain.java
@@ -79,6 +79,7 @@ public class ValidateProvidedTrustChain extends AbstractTrustChainResolutionActi
      * @param resolver provided trust chain resolver
      */
     public void setProvidedTrustChainResolver(@Nonnull final ProvidedTrustChainResolver resolver) {
+        checkSetterPreconditions();
         providedTrustChainResolver = Constraint.isNotNull(resolver, "ProvidedTrustChainResolver cannot be null");
     }
 

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


More information about the commits mailing list