* @throws TransportProtocolException
*/
protected boolean verifyHostKey(byte[] key, byte[] sig, byte[] sigdata)
throws TransportProtocolException {
// Determine the public key algorithm and obtain an instance
SshKeyPair pair = SshKeyPairFactory.newInstance(determineAlgorithm(
clientKexInit.getSupportedPublicKeys(),
serverKexInit.getSupportedPublicKeys()));
// Iniialize the public key instance
pk = pair.setPublicKey(key);
// We have a valid key so verify it against the allowed hosts
String host;
try {