Followup to rev.889716
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 19 Dec 2009 01:43:29 +0000 (01:43 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 19 Dec 2009 01:43:29 +0000 (01:43 +0000)
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

java/org/apache/catalina/authenticator/AuthenticatorBase.java
java/org/apache/catalina/connector/Request.java

index 51cea99..558c14d 100644 (file)
@@ -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 <code>true</code> to change session ID upon successful
+     *         authentication, <code>false</code> 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
+     *            <code>true</code> to change session ID upon successful
+     *            authentication, <code>false</code> to do not perform the
+     *            change.
+     */
+    public void setChangeSessionIdOnAuthentication(
+            boolean changeSessionIdOnAuthentication) {
+        this.changeSessionIdOnAuthentication = changeSessionIdOnAuthentication;
+    }
+
     // --------------------------------------------------------- Public Methods
 
 
index 70e3d17..384fffc 100644 (file)
@@ -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.
      *