Webservice - PreAuthentication

I am developing a webservice using notes/domino. I am using Java for Webservice SOAP client.

I have found there is some Microsoft codes to preautheniticate webservice. here is it :

ws.Credentials = new System.Net.NetworkCredential(“yourusername”,“yourpassword”);

Anybody have any ideas about the java equivalent for this …pls respond…

Shaji