i did a simmilar thing when i worte a terminal program.
I also added events and wrote a new Auth-Class which is basically a PasswordAuthenticationMethod with events
then I passed the PuplickeyAuth and the new one to the ConnectionInfo.
I also added events and wrote a new Auth-Class which is basically a PasswordAuthenticationMethod with events
then I passed the PuplickeyAuth and the new one to the ConnectionInfo.