[java-oidc-common] branch main updated: Add init method to fetch-through cache
Phil Smart
philip.smart at jisc.ac.uk
Tue Mar 8 11:29:58 UTC 2022
This is an automated email from the git hooks/post-receive script.
philsmart pushed a commit to branch main
in repository java-oidc-common.
View the commit online:
http://git.shibboleth.net/view/?p=java-oidc-common.git;a=commit;h=e43002d0d6e92dfc4545f1a89390659d9e8c4b67
The following commit(s) were added to refs/heads/main by this push:
new e43002d Add init method to fetch-through cache
e43002d is described below
commit e43002d0d6e92dfc4545f1a89390659d9e8c4b67
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Tue Mar 8 11:29:53 2022 +0000
Add init method to fetch-through cache
---
.../oidc/metadata/cache/impl/FetchThroughMetadataCache.java | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/oidc-common-metadata-impl/src/main/java/net/shibboleth/oidc/metadata/cache/impl/FetchThroughMetadataCache.java b/oidc-common-metadata-impl/src/main/java/net/shibboleth/oidc/metadata/cache/impl/FetchThroughMetadataCache.java
index 3980f87..7709716 100644
--- a/oidc-common-metadata-impl/src/main/java/net/shibboleth/oidc/metadata/cache/impl/FetchThroughMetadataCache.java
+++ b/oidc-common-metadata-impl/src/main/java/net/shibboleth/oidc/metadata/cache/impl/FetchThroughMetadataCache.java
@@ -34,6 +34,7 @@ import net.shibboleth.oidc.metadata.cache.MetadataCacheException;
import net.shibboleth.utilities.java.support.annotation.constraint.NonnullAfterInit;
import net.shibboleth.utilities.java.support.annotation.constraint.NonnullElements;
import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
+import net.shibboleth.utilities.java.support.component.ComponentInitializationException;
import net.shibboleth.utilities.java.support.component.ComponentSupport;
import net.shibboleth.utilities.java.support.logic.Constraint;
import net.shibboleth.utilities.java.support.resolver.CriteriaSet;
@@ -64,6 +65,16 @@ public class FetchThroughMetadataCache <IdentifierType, MetadataType>
super(null);
}
+ @Override
+ protected void doInitialize() throws ComponentInitializationException {
+ super.doInitialize();
+
+ if (fetchStrategy == null) {
+ throw new ComponentInitializationException("Metadata fetching strategy can not be null");
+ }
+
+ }
+
/**
* Set the metadata fetching strategy.
*
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list