Better name
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 1 Apr 2011 11:23:54 +0000 (11:23 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 1 Apr 2011 11:23:54 +0000 (11:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1087652 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/realm/RealmBase.java
webapps/docs/config/realm.xml

index d7a557a..5cec0a3 100644 (file)
@@ -155,7 +155,7 @@ public abstract class RealmBase extends LifecycleMBeanBase implements Realm {
      * When processing users authenticated via the GSS-API, should any
      * &quot;@...&quot; be stripped from the end of the user name?
      */
-    protected boolean stripAtForGss = true;
+    protected boolean stripRealmForGss = true;
 
     
     // ------------------------------------------------------------- Properties
@@ -279,13 +279,13 @@ public abstract class RealmBase extends LifecycleMBeanBase implements Realm {
     }
 
 
-    public boolean isStripAtForGss() {
-        return stripAtForGss;
+    public boolean isStripRealmForGss() {
+        return stripRealmForGss;
     }
 
 
-    public void setStripAtForGss(boolean stripAtForGss) {
-        this.stripAtForGss = stripAtForGss;
+    public void setStripRealmForGss(boolean stripRealmForGss) {
+        this.stripRealmForGss = stripRealmForGss;
     }
 
 
@@ -454,7 +454,7 @@ public abstract class RealmBase extends LifecycleMBeanBase implements Realm {
             if (gssName!= null) {
                 String name = gssName.toString();
                 
-                if (isStripAtForGss()) {
+                if (isStripRealmForGss()) {
                     int i = name.indexOf('@');
                     if (i > 0) {
                         // Zero so we don;t leave a zero length name
index d2f533a..9f20a40 100644 (file)
         a role name assigned to the corresponding user.</p>
       </attribute>
 
-      <attribute name="stripAtForGss" required="false">
+      <attribute name="stripRealmForGss" required="false">
         <p>When processing users authenticated via the GSS-API, this attribute
         controls if any &quot;@...&quot; is removed from the end of the user
         name. If not specified, the default is <code>true</code>.</p>
         a role name assigned to the corresponding user.</p>
       </attribute>
 
-      <attribute name="stripAtForGss" required="false">
+      <attribute name="stripRealmForGss" required="false">
         <p>When processing users authenticated via the GSS-API, this attribute
         controls if any &quot;@...&quot; is removed from the end of the user
         name. If not specified, the default is <code>true</code>.</p>
         <code>0</code> is used which indicates no limit.</p>
       </attribute>
 
-      <attribute name="stripAtForGss" required="false">
+      <attribute name="stripRealmForGss" required="false">
         <p>When processing users authenticated via the GSS-API, this attribute
         controls if any &quot;@...&quot; is removed from the end of the user
         name. If not specified, the default is <code>true</code>.</p>
         default value is <code>conf/tomcat-users.xml</code>.</p>
       </attribute>
 
-      <attribute name="stripAtForGss" required="false">
+      <attribute name="stripRealmForGss" required="false">
         <p>When processing users authenticated via the GSS-API, this attribute
         controls if any &quot;@...&quot; is removed from the end of the user
         name. If not specified, the default is <code>true</code>.</p>
         for your role <code>Principals</code>.</p>
       </attribute>
 
-      <attribute name="stripAtForGss" required="false">
+      <attribute name="stripRealmForGss" required="false">
         <p>When processing users authenticated via the GSS-API, this attribute
         controls if any &quot;@...&quot; is removed from the end of the user
         name. If not specified, the default is <code>true</code>.</p>