serverProposal = new String[SshConstants.PROPOSAL_MAX];
I_S = receiveKexInit(buffer, serverProposal);
}
private void checkHost() throws SshException {
ServerKeyVerifier serverKeyVerifier = getClientFactoryManager().getServerKeyVerifier();
if (serverKeyVerifier != null) {
SocketAddress remoteAddress = ioSession.getRemoteAddress();
if (!serverKeyVerifier.verifyServerKey(this, remoteAddress, kex.getServerKey()))
throw new SshException("Server key did not validate");
}
}