David Ostrovsky
2014-03-19 633d4c7a0cdf0b5eb2b01abfc6a058ac27e86d21
doAuthenticate() method doesn't need to be protected
1 files modified
5 ■■■■■ changed files
src/main/java/com/gitblit/transport/ssh/CachingPublicKeyAuthenticator.java 5 ●●●●● patch | view | raw | blame | history
src/main/java/com/gitblit/transport/ssh/CachingPublicKeyAuthenticator.java
@@ -73,7 +73,7 @@
        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 @@
            }
        }
        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;
    }