Misc clean-up
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 27 Feb 2011 15:53:45 +0000 (15:53 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 27 Feb 2011 15:53:45 +0000 (15:53 +0000)
- remove unused code
- suppress FindBugs false positives
- add javadoc

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1075083 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/authenticator/AuthenticatorBase.java
res/findbugs/filter-false-positives.xml

index 2983fca..877d269 100644 (file)
@@ -92,12 +92,6 @@ public abstract class AuthenticatorBase extends ValveBase
 
 
     /**
-     * The number of random bytes to include when generating a
-     * session identifier.
-     */
-    protected static final int SESSION_ID_BYTES = 16;
-
-    /**
      * Authentication header
      */
     protected static final String AUTH_HEADER_NAME = "WWW-Authenticate";
@@ -789,6 +783,15 @@ public abstract class AuthenticatorBase extends ValveBase
 
     protected abstract String getAuthMethod();
 
+    /**
+     * Process the login request.
+     * 
+     * @param request   Associated request
+     * @param username  The user
+     * @param password  The password
+     * @return          The authenticated Principal
+     * @throws ServletException
+     */
     protected Principal doLogin(Request request, String username,
             String password) throws ServletException {
         Principal p = context.getRealm().authenticate(username, password);
index 04a1ce3..fb8dfe8 100644 (file)
     <Bug code="REC"/>
   </Match>
   <Match>
+    <Class name="org.apache.catalina.authenticator.AuthenticatorBase"/>
+    <Field name="sessionIdGenerator"/>
+    <Bug code="IS"/>
+  </Match>
+  <Match>
     <!-- JNI library can only be loaded once so statics are appropriate -->
     <Class name="org.apache.catalina.core.AprLifecycleListener" />
     <Bug code="ST" />