[java-shib-shared] branch main updated: Allow CookieManager class to be extended.

Scott Cantor cantor.2 at osu.edu
Tue Dec 12 22:02:05 UTC 2023


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

scantor pushed a commit to branch main
in repository java-shib-shared.

View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=342ff51a1e6e0182378be683c2b38a8df1e088ff

The following commit(s) were added to refs/heads/main by this push:
     new 342ff51a Allow CookieManager class to be extended.
342ff51a is described below

commit 342ff51a1e6e0182378be683c2b38a8df1e088ff
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Dec 12 17:01:27 2023 -0500

    Allow CookieManager class to be extended.
---
 .../main/java/net/shibboleth/shared/net/CookieManager.java  | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/shib-networking/src/main/java/net/shibboleth/shared/net/CookieManager.java b/shib-networking/src/main/java/net/shibboleth/shared/net/CookieManager.java
index c92ccc25..7d4da3f4 100644
--- a/shib-networking/src/main/java/net/shibboleth/shared/net/CookieManager.java
+++ b/shib-networking/src/main/java/net/shibboleth/shared/net/CookieManager.java
@@ -37,7 +37,7 @@ import net.shibboleth.shared.primitive.StringSupport;
  * and is parameterized by name so that multiple cookies may be managed with
  * common properties.</p>
  */
-public final class CookieManager extends AbstractInitializableComponent {
+public class CookieManager extends AbstractInitializableComponent {
 
     /** Path of cookie. */
     @Nullable private String cookiePath;
@@ -159,6 +159,17 @@ public final class CookieManager extends AbstractInitializableComponent {
         httpOnly = flag;
     }
     
+    /**
+     * Get maximum age of cookies in seconds.
+     * 
+     * @return max age in seconds
+     * 
+     * @since 9.1.0
+     */
+    public int getMaxAge() {
+        return maxAge;
+    }
+    
     /**
      * Maximum age in seconds, or -1 for per-session.
      * 

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


More information about the commits mailing list