data.write(1);
data.writeString(key.getAlgorithmName());
data.writeBinaryString(key.getEncoded());
// Generate the signature
baw.writeBinaryString(agent.hashAndSign(key, data.toByteArray()));
SshMsgUserAuthRequest msg = new SshMsgUserAuthRequest(getUsername(),
serviceToStart, getMethodName(), baw.toByteArray());
authentication.sendMessage(msg);