Transport registration question


I’ve installed the latest openfire and the gateway plugin.

I can login using psi and see the msn transport in service discovery and register.

It all works great.

I would like to do the same operation through smack but I’m having some problems finding info on how to do it.

Via smack, I can login and chat to my msn account that I have previously registered through psi.

If a then remove the transport via psi, I can do a service discovery through smack and see the msn. transport but how to I now register to it?

I have tried the Authentication class but I can’t get it to work (if this is how I should be doing it).

Any help and code samples would be great.