msg.setAuthenticationData(md);
return msg;
} else if (lastMessage.getID() == UserAuthPublicKeyOk.ID) {
UserAuthRequestMessage msg = initUserAuthRequestMessage();
PublicKeyMethodData md = new PublicKeyMethodData(key.getName(), key.encode());
md.prepareTBS();
msg.setAuthenticationData(md);
byte[] sig = null;
try {
signer.update(Utils.encodeBytes(transport.getSessionId()));
signer.update(msg.getEncoding());