From ed8e075425412608f6657f98b19822f10ecc3a48 Mon Sep 17 00:00:00 2001 From: kkolinko Date: Sat, 19 Dec 2009 01:43:29 +0000 Subject: [PATCH] Followup to rev.889716 The new AuthenticatorBase property needs a setter. Also, corrected a javadoc misprint. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@892415 13f79535-47bb-0310-9956-ffa450edef68 --- .../catalina/authenticator/AuthenticatorBase.java | 25 ++++++++++++++++++++++ java/org/apache/catalina/connector/Request.java | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/java/org/apache/catalina/authenticator/AuthenticatorBase.java b/java/org/apache/catalina/authenticator/AuthenticatorBase.java index 51cea993a..558c14d2f 100644 --- a/java/org/apache/catalina/authenticator/AuthenticatorBase.java +++ b/java/org/apache/catalina/authenticator/AuthenticatorBase.java @@ -386,6 +386,31 @@ public abstract class AuthenticatorBase this.securePagesWithPragma = securePagesWithPragma; } + /** + * Return the flag that states if we should change the session ID of an + * existing session upon successful authentication. + * + * @return true to change session ID upon successful + * authentication, false to do not perform the change. + */ + public boolean getChangeSessionIdOnAuthentication() { + return changeSessionIdOnAuthentication; + } + + /** + * Set the value of the flag that states if we should change the session ID + * of an existing session upon successful authentication. + * + * @param changeSessionIdOnAuthentication + * true to change session ID upon successful + * authentication, false to do not perform the + * change. + */ + public void setChangeSessionIdOnAuthentication( + boolean changeSessionIdOnAuthentication) { + this.changeSessionIdOnAuthentication = changeSessionIdOnAuthentication; + } + // --------------------------------------------------------- Public Methods diff --git a/java/org/apache/catalina/connector/Request.java b/java/org/apache/catalina/connector/Request.java index 70e3d17d5..384fffc62 100644 --- a/java/org/apache/catalina/connector/Request.java +++ b/java/org/apache/catalina/connector/Request.java @@ -2273,7 +2273,7 @@ public class Request /** * Change the ID of the session that this request is associated with. There - * are several things that may trigger an ID change. These include mmoving + * are several things that may trigger an ID change. These include moving * between nodes in a cluster and session fixation prevention during the * authentication process. * -- 2.11.0