[java-shib-shared] 01/12: Allow CookieManager class to be extended.
Scott Cantor
cantor.2 at osu.edu
Wed Jan 31 14:15:48 UTC 2024
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch dev/thymeleaf
in repository java-shib-shared.
View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=41801aa587490aaab0087c0a23036e89bf95a358
commit 41801aa587490aaab0087c0a23036e89bf95a358
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