[java-identity-provider] branch main updated: Override the "right" methods on the base class for hooking operations.

Scott Cantor cantor.2 at osu.edu
Wed Apr 9 20:31:04 UTC 2025


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

scantor pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=947340d3914dfcfcd0764ae00d20ecd05730b1b1

The following commit(s) were added to refs/heads/main by this push:
     new 947340d39 Override the "right" methods on the base class for hooking operations.
947340d39 is described below

commit 947340d3914dfcfcd0764ae00d20ecd05730b1b1
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Apr 9 16:31:00 2025 -0400

    Override the "right" methods on the base class for hooking operations.
---
 .../idp/profile/support/StorageAwareCookieManager.java         | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/support/StorageAwareCookieManager.java b/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/support/StorageAwareCookieManager.java
index 4e3498242..7dd8fcad6 100644
--- a/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/support/StorageAwareCookieManager.java
+++ b/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/support/StorageAwareCookieManager.java
@@ -27,6 +27,7 @@ import org.opensaml.storage.StorageService;
 import org.slf4j.Logger;
 
 import net.shibboleth.shared.annotation.constraint.NonnullAfterInit;
+import net.shibboleth.shared.annotation.constraint.NotEmpty;
 import net.shibboleth.shared.component.ComponentInitializationException;
 import net.shibboleth.shared.net.CookieManager;
 import net.shibboleth.shared.primitive.LoggerFactory;
@@ -123,8 +124,9 @@ public class StorageAwareCookieManager extends CookieManager {
 
     /** {@inheritDoc} */
     @Override
-    public void addCookie(@Nonnull final String name, @Nonnull final String value, final int overrideMaxAge) {
-        super.addCookie(name, value, overrideMaxAge);
+    public void addCookie(@Nonnull final String name, @Nonnull final String value,
+            @Nullable @NotEmpty final String overridePath, final int overrideMaxAge) {
+        super.addCookie(name, value, overridePath, overrideMaxAge);
 
         final Long exp = Instant.now().plusSeconds(overrideMaxAge).toEpochMilli();
         
@@ -145,8 +147,8 @@ public class StorageAwareCookieManager extends CookieManager {
 
     /** {@inheritDoc} */
     @Override
-    public void unsetCookie(@Nonnull final String name) {
-        super.unsetCookie(name);
+    public void unsetCookie(@Nonnull final String name, @Nullable @NotEmpty final String overridePath) {
+        super.unsetCookie(name, overridePath);
         
         final StorageService ss = storageService;
         if (ss != null) {

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


More information about the commits mailing list