From: markt Date: Sun, 27 Feb 2011 15:53:45 +0000 (+0000) Subject: Misc clean-up X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c5494fc7c0ffd1adb3e524251d022a19af6f9fdc;p=tomcat7.0 Misc clean-up - 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 --- diff --git a/java/org/apache/catalina/authenticator/AuthenticatorBase.java b/java/org/apache/catalina/authenticator/AuthenticatorBase.java index 2983fcacd..877d2698a 100644 --- a/java/org/apache/catalina/authenticator/AuthenticatorBase.java +++ b/java/org/apache/catalina/authenticator/AuthenticatorBase.java @@ -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); diff --git a/res/findbugs/filter-false-positives.xml b/res/findbugs/filter-false-positives.xml index 04a1ce38d..fb8dfe8c2 100644 --- a/res/findbugs/filter-false-positives.xml +++ b/res/findbugs/filter-false-positives.xml @@ -37,6 +37,11 @@ + + + + +