[java-oidfed-common] 01/03: Renamed the local ResolveEntityResponseContainer into ResolveEntityNimbusResponseContainer
Codeberg
noreply at shibboleth.net
Fri Nov 13 11:43:57 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/9f02e0e4ca5abaf5c61185e0f4a062caf38dd82f
commit 9f02e0e4ca5abaf5c61185e0f4a062caf38dd82f
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Fri Nov 13 10:08:17 2026 +0200
Renamed the local ResolveEntityResponseContainer into ResolveEntityNimbusResponseContainer
- Similarly named ResolveEntityResponseContainer exists in net.shibboleth.oidfed.metadata.cache.resolver
- Fixed FormOutboundResolveEntityResponse to refer to the correct one
---
.../local/DefaultResolveEntityResponseFetchingStrategy.java | 6 +++---
...ontainer.java => ResolveEntityNimbusResponseContainer.java} | 4 ++--
.../profile/impl/BuildResolveEntityErrorResponseFromEvent.java | 8 ++++----
.../oidfed/profile/impl/FormOutboundResolveEntityResponse.java | 8 ++++----
.../oidfed/profile/impl/LookupCachedResolveEntityResponse.java | 10 +++++-----
5 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/metadata/cache/local/DefaultResolveEntityResponseFetchingStrategy.java b/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/metadata/cache/local/DefaultResolveEntityResponseFetchingStrategy.java
index 2bfa1c2..78d0fa4 100644
--- a/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/metadata/cache/local/DefaultResolveEntityResponseFetchingStrategy.java
+++ b/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/metadata/cache/local/DefaultResolveEntityResponseFetchingStrategy.java
@@ -33,14 +33,14 @@ import net.shibboleth.shared.resolver.CriteriaSet;
*/
@ThreadSafeAfterInit
public class DefaultResolveEntityResponseFetchingStrategy extends AbstractIdentifiableInitializableComponent
- implements Function<CriteriaSet, ResolveEntityResponseContainer> {
+ implements Function<CriteriaSet, ResolveEntityNimbusResponseContainer> {
/** Class logger. */
@Nonnull private Logger log = LoggerFactory.getLogger(DefaultResolveEntityResponseFetchingStrategy.class);
/** {@inheritDoc} */
@Override @Nullable
- public ResolveEntityResponseContainer apply(@Nullable final CriteriaSet criteria) {
+ public ResolveEntityNimbusResponseContainer apply(@Nullable final CriteriaSet criteria) {
checkComponentActive();
if (criteria == null) {
return null;
@@ -61,7 +61,7 @@ public class DefaultResolveEntityResponseFetchingStrategy extends AbstractIdenti
log.debug("No expiration criterion given, returning null");
return null;
}
- return new ResolveEntityResponseContainer(responseCriterion.getResponse(), requestCriterion.getRequest(),
+ return new ResolveEntityNimbusResponseContainer(responseCriterion.getResponse(), requestCriterion.getRequest(),
expirationCriterion.getExpirationInstant());
}
}
diff --git a/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/metadata/cache/local/ResolveEntityResponseContainer.java b/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/metadata/cache/local/ResolveEntityNimbusResponseContainer.java
similarity index 90%
rename from oidfed-common-impl/src/main/java/net/shibboleth/oidfed/metadata/cache/local/ResolveEntityResponseContainer.java
rename to oidfed-common-impl/src/main/java/net/shibboleth/oidfed/metadata/cache/local/ResolveEntityNimbusResponseContainer.java
index 519d687..b3da795 100644
--- a/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/metadata/cache/local/ResolveEntityResponseContainer.java
+++ b/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/metadata/cache/local/ResolveEntityNimbusResponseContainer.java
@@ -28,7 +28,7 @@ import net.shibboleth.shared.logic.Constraint;
/**
* A container class for metadata caches carrying request and response message details related to Resolve Entity API.
*/
-public class ResolveEntityResponseContainer extends NimbusResponseContainer implements Serializable {
+public class ResolveEntityNimbusResponseContainer extends NimbusResponseContainer implements Serializable {
/** Serial version UID. */
private static final long serialVersionUID = 756269369356865370L;
@@ -43,7 +43,7 @@ public class ResolveEntityResponseContainer extends NimbusResponseContainer impl
* @param requestMessage request message
* @param expirationInstant expiration instant
*/
- public ResolveEntityResponseContainer(@Nullable final Response responseMessage,
+ public ResolveEntityNimbusResponseContainer(@Nullable final Response responseMessage,
@Nonnull final ResolveEntityRequest requestMessage, @Nonnull final Instant expirationInstant) {
super(responseMessage, expirationInstant);
request = Constraint.isNotNull(requestMessage, "Request message cannot be null");
diff --git a/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/impl/BuildResolveEntityErrorResponseFromEvent.java b/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/impl/BuildResolveEntityErrorResponseFromEvent.java
index 20f6113..cda2a18 100644
--- a/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/impl/BuildResolveEntityErrorResponseFromEvent.java
+++ b/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/impl/BuildResolveEntityErrorResponseFromEvent.java
@@ -42,7 +42,7 @@ import net.shibboleth.oidfed.messaging.impl.ResolveEntityRequest;
import net.shibboleth.oidfed.metadata.cache.ResponseContainerExpirationCriterion;
import net.shibboleth.oidfed.metadata.cache.local.NimbusResponseCriterion;
import net.shibboleth.oidfed.metadata.cache.local.ResolveEntityRequestCriterion;
-import net.shibboleth.oidfed.metadata.cache.local.ResolveEntityResponseContainer;
+import net.shibboleth.oidfed.metadata.cache.local.ResolveEntityNimbusResponseContainer;
import net.shibboleth.oidfed.profile.config.navigate.CachedErrorResponseLifetimeLookupFunction;
import net.shibboleth.shared.annotation.constraint.NonnullAfterInit;
import net.shibboleth.shared.component.ComponentInitializationException;
@@ -80,7 +80,7 @@ public class BuildResolveEntityErrorResponseFromEvent extends AbstractProfileAct
private String defaultCode;
/** Metadata cache for cached response containers. */
- @NonnullAfterInit private MetadataCache<ResolveEntityResponseContainer> responseCache;
+ @NonnullAfterInit private MetadataCache<ResolveEntityNimbusResponseContainer> responseCache;
/** Strategy used to locate the lifetime for the cached response record. */
@Nonnull private Function<ProfileRequestContext,Duration> cachedResponseLifetimeLookupStrategy;
@@ -151,7 +151,7 @@ public class BuildResolveEntityErrorResponseFromEvent extends AbstractProfileAct
*
* @param cache What to set.
*/
- public void setResponseCache(@Nonnull final MetadataCache<ResolveEntityResponseContainer> cache) {
+ public void setResponseCache(@Nonnull final MetadataCache<ResolveEntityNimbusResponseContainer> cache) {
checkSetterPreconditions();
responseCache = Constraint.isNotNull(cache, "Response metadata cache cannot be null");
}
@@ -252,7 +252,7 @@ public class BuildResolveEntityErrorResponseFromEvent extends AbstractProfileAct
new ResolveEntityRequestCriterion(resolveEntityRequest);
final CriteriaSet criteria = new CriteriaSet(requestCriterion, responseCriterion, expirationCriterion);
try {
- final List<ResolveEntityResponseContainer> result = responseCache.get(criteria);
+ final List<ResolveEntityNimbusResponseContainer> result = responseCache.get(criteria);
if (result.size() != 1) {
log.error("{} Unexpected result (size={}) when storing response record into the metadata cache",
getLogPrefix(), result.size());
diff --git a/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/impl/FormOutboundResolveEntityResponse.java b/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/impl/FormOutboundResolveEntityResponse.java
index c3ba951..752bd5d 100644
--- a/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/impl/FormOutboundResolveEntityResponse.java
+++ b/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/impl/FormOutboundResolveEntityResponse.java
@@ -40,7 +40,7 @@ import net.shibboleth.oidfed.messaging.impl.ResolveEntityResponse;
import net.shibboleth.oidfed.metadata.cache.ResponseContainerExpirationCriterion;
import net.shibboleth.oidfed.metadata.cache.local.NimbusResponseCriterion;
import net.shibboleth.oidfed.metadata.cache.local.ResolveEntityRequestCriterion;
-import net.shibboleth.oidfed.metadata.cache.resolver.ResolveEntityResponseContainer;
+import net.shibboleth.oidfed.metadata.cache.local.ResolveEntityNimbusResponseContainer;
import net.shibboleth.oidfed.profile.config.navigate.CachedSuccessResponseLifetimeLookupFunction;
import net.shibboleth.shared.annotation.constraint.NonnullAfterInit;
import net.shibboleth.shared.annotation.constraint.NonnullBeforeExec;
@@ -60,7 +60,7 @@ public class FormOutboundResolveEntityResponse extends AbstractProfileAction {
@Nonnull private final Logger log = LoggerFactory.getLogger(FormOutboundResolveEntityResponse.class);
/** Metadata cache for cached response containers. */
- @NonnullAfterInit private MetadataCache<ResolveEntityResponseContainer> responseCache;
+ @NonnullAfterInit private MetadataCache<ResolveEntityNimbusResponseContainer> responseCache;
/** Strategy used to locate the resolve entity context. */
@Nonnull
@@ -122,7 +122,7 @@ public class FormOutboundResolveEntityResponse extends AbstractProfileAction {
*
* @param cache What to set.
*/
- public void setResponseCache(@Nonnull final MetadataCache<ResolveEntityResponseContainer> cache) {
+ public void setResponseCache(@Nonnull final MetadataCache<ResolveEntityNimbusResponseContainer> cache) {
checkSetterPreconditions();
responseCache = Constraint.isNotNull(cache, "Response metadata cache cannot be null");
}
@@ -207,7 +207,7 @@ public class FormOutboundResolveEntityResponse extends AbstractProfileAction {
final ResolveEntityRequestCriterion requestCriterion = new ResolveEntityRequestCriterion(validatedRequest);
final CriteriaSet criteria = new CriteriaSet(requestCriterion, responseCriterion, expirationCriterion);
try {
- final List<ResolveEntityResponseContainer> result = responseCache.get(criteria);
+ final List<ResolveEntityNimbusResponseContainer> result = responseCache.get(criteria);
if (result.size() != 1) {
log.error("{} Unexpected result (size={}) when storing response record into the metadata cache",
getLogPrefix(), result.size());
diff --git a/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/impl/LookupCachedResolveEntityResponse.java b/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/impl/LookupCachedResolveEntityResponse.java
index f52c867..f1e2803 100644
--- a/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/impl/LookupCachedResolveEntityResponse.java
+++ b/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/impl/LookupCachedResolveEntityResponse.java
@@ -31,7 +31,7 @@ import net.shibboleth.oidc.metadata.cache.MetadataCache;
import net.shibboleth.oidc.metadata.cache.MetadataCacheException;
import net.shibboleth.oidfed.messaging.impl.ResolveEntityRequest;
import net.shibboleth.oidfed.metadata.cache.local.ResolveEntityRequestCriterion;
-import net.shibboleth.oidfed.metadata.cache.local.ResolveEntityResponseContainer;
+import net.shibboleth.oidfed.metadata.cache.local.ResolveEntityNimbusResponseContainer;
import net.shibboleth.oidfed.profile.OidFederationEventIds;
import net.shibboleth.shared.annotation.constraint.NonnullAfterInit;
import net.shibboleth.shared.annotation.constraint.NonnullBeforeExec;
@@ -58,7 +58,7 @@ public class LookupCachedResolveEntityResponse extends AbstractProfileAction {
private Function<ProfileRequestContext, RelyingPartyCachedMessageContext> cachedMessageContextLookupStrategy;
/** Metadata cache for cached response containers. */
- @NonnullAfterInit private MetadataCache<ResolveEntityResponseContainer> responseCache;
+ @NonnullAfterInit private MetadataCache<ResolveEntityNimbusResponseContainer> responseCache;
/** Cached message context to operate on. */
@NonnullBeforeExec private RelyingPartyCachedMessageContext cachedMessageContext;
@@ -93,7 +93,7 @@ public class LookupCachedResolveEntityResponse extends AbstractProfileAction {
*
* @param cache What to set.
*/
- public void setResponseCache(@Nonnull final MetadataCache<ResolveEntityResponseContainer> cache) {
+ public void setResponseCache(@Nonnull final MetadataCache<ResolveEntityNimbusResponseContainer> cache) {
checkSetterPreconditions();
responseCache = Constraint.isNotNull(cache, "Response metadata cache cannot be null");
}
@@ -139,11 +139,11 @@ public class LookupCachedResolveEntityResponse extends AbstractProfileAction {
final ResolveEntityRequestCriterion requestCriterion = new ResolveEntityRequestCriterion(validatedRequest);
final CriteriaSet criteria = new CriteriaSet(requestCriterion);
try {
- final List<ResolveEntityResponseContainer> result = responseCache.get(criteria);
+ final List<ResolveEntityNimbusResponseContainer> result = responseCache.get(criteria);
if (result.size() != 1) {
log.debug("{} No cached response record found from the metadata cache", getLogPrefix(), result.size());
} else {
- final ResolveEntityResponseContainer cachedResponse = result.get(0);
+ final ResolveEntityNimbusResponseContainer cachedResponse = result.get(0);
cachedMessageContext.setCachedResponse(cachedResponse.getResponse());
log.debug("{} Response found from the cache, publishing event {}", getLogPrefix(),
OidFederationEventIds.CACHED_RESPONSE_FOUND);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list