[java-oidfed-common] 02/03: Provide FlowDefaultTrustChainMetadataCache hook in resolve-trust-chains

Codeberg noreply at shibboleth.net
Fri Nov 13 11:43:58 UTC 2026


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

codeberg pushed a commit to branch main
in repository java-oidfed-common.

View the commit online:
https://codeberg.org/Shibboleth/java-oidfed-common/commit/336f0249dc74838753089eb652b74f0613ed42f4

commit 336f0249dc74838753089eb652b74f0613ed42f4
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Fri Nov 13 13:41:40 2026 +0200

    Provide FlowDefaultTrustChainMetadataCache hook in resolve-trust-chains
    
    - Similar pattern to metadata policy merging strategies and enforcers
      - idp.oidfed.admin.resolvertest.TrustChainMetadataCache (for trust marks: idp.oidfed.admin.resolvertest.TrustMarkTrustChainMetadataCache)
      - idp.oidfed.resolveEntity.TrustChainMetadataCache (for trust marks: idp.oidfed.resolveEntity.TrustMarkTrustChainMetadataCache)
---
 .../test-trust-chain-resolution-beans.xml                            | 5 ++++-
 .../idp/flows/oidfed/resolve-entity/resolve-entity-beans.xml         | 5 ++++-
 .../flows/oidfed/resolve-trust-chains/resolve-trust-chains-beans.xml | 2 +-
 .../resources/net/shibboleth/oidfed/conf/oidfed/oidfed.properties    | 2 ++
 4 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/admin/oidfed/test-trust-chain-resolution/test-trust-chain-resolution-beans.xml b/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/admin/oidfed/test-trust-chain-resolution/test-trust-chain-resolution-beans.xml
index 0e9db67..f088841 100644
--- a/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/admin/oidfed/test-trust-chain-resolution/test-trust-chain-resolution-beans.xml
+++ b/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/admin/oidfed/test-trust-chain-resolution/test-trust-chain-resolution-beans.xml
@@ -23,6 +23,9 @@
     
     <bean id="shibboleth.AdminResourceLookupStrategy" parent="shibboleth.Functions.Constant"
         c:target="oidfed/test-trust-chain-resolution" />
+
+    <alias alias="FlowDefaultTrustChainMetadataCache"
+        name="%{idp.oidfed.admin.resolvertest.TrustChainMetadataCache:shibboleth.oidfed.TrustChainMetadataCache}" />
     
     <bean id="shibboleth.oidfed.trust-chain-resolver.EntityIDLookupStrategy"
         parent="shibboleth.Functions.Expression"
@@ -72,7 +75,7 @@
         </property>
         <property name="trustMarkIssuerConfigurationFetchingStrategy">
             <bean class="net.shibboleth.oidfed.metadata.cache.trustmark.DefaultTrustMarkIssuerConfigurationFetchingStrategy"
-                p:trustChainCache-ref="#{'%{idp.oidfed.admin.resolvertest.TrustChainMetadataCache:shibboleth.oidfed.TrustChainMetadataCache}'.trim()}"
+                p:trustChainCache-ref="#{'%{idp.oidfed.admin.resolvertest.TrustMarkTrustChainMetadataCache:shibboleth.oidfed.TrustChainMetadataCache}'.trim()}"
                 p:entityConfigurationCache-ref="#{'%{idp.oidfed.admin.resolvertest.EntityConfigurationMetadataCache:shibboleth.oidfed.EntityConfigurationMetadataCache}'.trim()}"
                 p:localTrustAnchorsCache-ref="#{'%{idp.oidfed.admin.resolvertest.LocalTrustAnchorsMetadataCache:shibboleth.oidfed.LocalTrustAnchorsMetadataCache}'.trim()}">
                 <property name="trustEngine">
diff --git a/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/oidfed/resolve-entity/resolve-entity-beans.xml b/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/oidfed/resolve-entity/resolve-entity-beans.xml
index 3fd7f47..d0dfcbf 100644
--- a/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/oidfed/resolve-entity/resolve-entity-beans.xml
+++ b/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/oidfed/resolve-entity/resolve-entity-beans.xml
@@ -23,6 +23,9 @@
     <alias alias="ResolveTrustChainsCondition"
         name="%{idp.oidfed.resolveEntity.resolveTrustChainsCondition:DefaultResolveTrustChainsCondition}" />
 
+    <alias alias="FlowDefaultTrustChainMetadataCache"
+        name="%{idp.oidfed.resolveEntity.TrustChainMetadataCache:shibboleth.oidfed.TrustChainMetadataCache}" />
+
     <bean id="DefaultResolveTrustChainsCondition" parent="shibboleth.Conditions.Expression"
         c:expression="#input.getInboundMessageContext().getMessage().getClientAuthentication() instanceof T(com.nimbusds.oauth2.sdk.auth.PrivateKeyJWT)" />
 
@@ -198,7 +201,7 @@
         </property>
         <property name="trustMarkIssuerConfigurationFetchingStrategy">
             <bean class="net.shibboleth.oidfed.metadata.cache.trustmark.DefaultTrustMarkIssuerConfigurationFetchingStrategy"
-                p:trustChainCache-ref="#{'%{idp.oidfed.resolveEntity.TrustChainMetadataCache:shibboleth.oidfed.TrustChainMetadataCache}'.trim()}"
+                p:trustChainCache-ref="#{'%{idp.oidfed.resolveEntity.TrustMarkTrustChainMetadataCache:shibboleth.oidfed.TrustChainMetadataCache}'.trim()}"
                 p:entityConfigurationCache-ref="#{'%{idp.oidfed.resolveEntity.EntityConfigurationMetadataCache:shibboleth.oidfed.EntityConfigurationMetadataCache}'.trim()}"
                 p:localTrustAnchorsCache-ref="#{'%{idp.oidfed.resolveEntity.LocalTrustAnchorsMetadataCache:shibboleth.oidfed.LocalTrustAnchorsMetadataCache}'.trim()}">
                 <property name="trustEngine">
diff --git a/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/oidfed/resolve-trust-chains/resolve-trust-chains-beans.xml b/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/oidfed/resolve-trust-chains/resolve-trust-chains-beans.xml
index e2dae97..014fc2d 100644
--- a/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/oidfed/resolve-trust-chains/resolve-trust-chains-beans.xml
+++ b/oidfed-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/oidfed/resolve-trust-chains/resolve-trust-chains-beans.xml
@@ -25,7 +25,7 @@
 
     <bean id="ResolveTrustChains" class="net.shibboleth.oidfed.profile.impl.ResolveTrustChains"
         scope="prototype"
-        p:trustChainCache="#{getObject('shibboleth.oidfed.trust-chain-resolver.TrustChainMetadataCache') ?: getObject('shibboleth.oidfed.TrustChainMetadataCache')}"
+        p:trustChainCache="#{getObject('shibboleth.oidfed.trust-chain-resolver.TrustChainMetadataCache') ?: getObject('FlowDefaultTrustChainMetadataCache') ?: getObject('shibboleth.oidfed.TrustChainMetadataCache')}"
         p:metadataPolicyMergingStrategy="#{getObject('shibboleth.oidfed.trust-chain-resolver.TrustChainMetadataPolicyMergingStrategy') ?: getObject('FlowDefaultTrustChainMetadataPolicyMergingStrategy') ?: getObject('shibboleth.oidfed.trust-chain-resolver.DefaultTrustChainMetadataPolicyMergingStrategy')}"
         p:metadataPolicyEnforcer="#{getObject('shibboleth.oidfed.trust-chain-resolver.MetadataPolicyEnforcer') ?: getObject('FlowDefaultMetadataPolicyEnforcer') ?: getObject('shibboleth.oidfed.trust-chain-resolver.DefaultMetadataPolicyEnforcer')}"
         p:preSelectedTrustChainIdsLookupStrategy="#{getObject('shibboleth.oidfed.trust-chain-resolver.PreSelectedTrustChainIDsLookupStrategy') ?: getObject('shibboleth.oidfed.DefaultPreSelectedTrustChainIDsLookupStrategy')}"
diff --git a/oidfed-common-impl/src/main/resources/net/shibboleth/oidfed/conf/oidfed/oidfed.properties b/oidfed-common-impl/src/main/resources/net/shibboleth/oidfed/conf/oidfed/oidfed.properties
index 677e450..46cffd9 100644
--- a/oidfed-common-impl/src/main/resources/net/shibboleth/oidfed/conf/oidfed/oidfed.properties
+++ b/oidfed-common-impl/src/main/resources/net/shibboleth/oidfed/conf/oidfed/oidfed.properties
@@ -125,6 +125,7 @@
 #idp.oidfed.admin.resolvertest.postAuthenticationFlows
 #idp.oidfed.admin.resolvertest.defaultAuthenticationMethods
 #idp.oidfed.admin.resolvertest.TrustChainMetadataCache = shibboleth.oidfed.TrustChainMetadataCache
+#idp.oidfed.admin.resolvertest.TrustMarkTrustChainMetadataCache = shibboleth.oidfed.TrustChainMetadataCache
 #idp.oidfed.admin.resolvertest.EntityConfigurationMetadataCache = shibboleth.oidfed.EntityConfigurationMetadataCache
 #idp.oidfed.admin.resolvertest.LocalTrustAnchorsMetadataCache = shibboleth.oidfed.LocalTrustAnchorsMetadataCache
 #idp.oidfed.admin.resolvertest.TrustMarkStatusMetadataCache = shibboleth.oidfed.TrustMarkStatusMetadataCache
@@ -137,6 +138,7 @@
 #idp.oidfed.resolveEntity.MetadataPolicyMergingStrategy = FlowDefaultMetadataPolicyMergingStrategy
 #idp.oidfed.resolveEntity.LocalMetadataPolicyStrategy = FlowDefaultLocalMetadataPolicyStrategy
 #idp.oidfed.resolveEntity.TrustChainMetadataCache = shibboleth.oidfed.TrustChainMetadataCache
+#idp.oidfed.resolveEntity.TrustMarkTrustChainMetadataCache = shibboleth.oidfed.TrustChainMetadataCache
 #idp.oidfed.resolveEntity.EntityConfigurationMetadataCache = shibboleth.oidfed.EntityConfigurationMetadataCache
 #idp.oidfed.resolveEntity.LocalTrustAnchorsMetadataCache = shibboleth.oidfed.LocalTrustAnchorsMetadataCache
 #idp.oidfed.resolveEntity.TrustMarkStatusMetadataCache = shibboleth.oidfed.TrustMarkStatusMetadataCache

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


More information about the commits mailing list