Reformat ServerKeyVerifierImpl
@@ -50,8 +50,8 @@ public class ServerKeyVerifierImpl implements ServerKeyVerifier {
}
@Override
- public boolean verifyServerKey(ClientSession sshClientSession,
- SocketAddress remoteAddress, PublicKey serverKey) {
+ public boolean verifyServerKey(ClientSession sshClientSession, SocketAddress remoteAddress,
+ PublicKey serverKey) {
PublicKey knownKey;
try {
knownKey = knownHostsManager.getKnownKey(remoteAddress, serverKey.getAlgorithm());
@@ -79,7 +79,8 @@ public class ServerKeyVerifierImpl implements ServerKeyVerifier {
boolean verifed = (knownKey.equals(serverKey));
if (!verifed) {
- System.err.println("Server key for host " + remoteAddress + " does not match the stored key !! Terminating session.");
+ System.err.println("Server key for host " + remoteAddress
+ + " does not match the stored key !! Terminating session.");
System.err.println(keyChangedMessage);
}
return verifed;
@@ -98,6 +99,4 @@ public class ServerKeyVerifierImpl implements ServerKeyVerifier {
return confirm;
}
-
-
}
