]> source.dussan.org Git - gitblit.git/commitdiff
doAuthenticate() method doesn't need to be protected
authorDavid Ostrovsky <david@ostrovsky.org>
Wed, 19 Mar 2014 07:38:07 +0000 (08:38 +0100)
committerJames Moger <james.moger@gitblit.com>
Thu, 10 Apr 2014 22:58:09 +0000 (18:58 -0400)
src/main/java/com/gitblit/transport/ssh/CachingPublicKeyAuthenticator.java

index 0120fa65bd5cacee44f38968667a8640682e847e..295275c29d46497bf8d3261caba22fdc3ba4009c 100644 (file)
@@ -73,7 +73,7 @@ public class CachingPublicKeyAuthenticator implements PublickeyAuthenticator,
                return result;
        }
 
-       protected boolean doAuthenticate(String username, PublicKey suppliedKey,
+       private boolean doAuthenticate(String username, PublicKey suppliedKey,
                        ServerSession session) {
                SshDaemonClient client = session.getAttribute(SshDaemonClient.KEY);
                Preconditions.checkState(client.getUser() == null);
@@ -95,8 +95,7 @@ public class CachingPublicKeyAuthenticator implements PublickeyAuthenticator,
                        }
                }
 
-               log.warn(
-                               "could not authenticate {} for SSH using the supplied public key",
+               log.warn("could not authenticate {} for SSH using the supplied public key",
                                username);
                return false;
        }