UnicastSecureType and Jxta Sockets

[email protected] Mon, 20 Jun 2005 10:28:43 -0500
Newsgroups gmane.comp.java.jxta.user,gmane.comp.java.jxta.devel
Message-ID <[email protected]>
Hi --

I am interested in using the equivalent of SSL in my application that is
using Jxta Sockets.

I was hoping that I could have just set the type in my pipe
advertisement to UnicastSecureType before I created my socket and then I
would be talking over a secure socket. It is apparently not quite that
simple.

I am getting the following exception:

java.io.IOException: No credentials established to initiate a secure
connection
        at net.jxta.socket.JxtaSocket.createOpenMessage(JxtaSocket.java:504)
        at net.jxta.socket.JxtaSocket.connect(JxtaSocket.java:371)
        at net.jxta.socket.JxtaSocket.<init>(JxtaSocket.java:291)

What is the answer here? I looked in the Jxta Programmers Guide - in the
JxtaServerSocket example. There is a (fairly complex) method called
login - that might be what I need - but then I see that in the example -
that the call to it is commented out. And - what is the 'principal' and
'password' arguments to the login method? How do they relate to the
userid and password in the Jxta config dialog?

I dont know if it matters - but I am using the default Jxta NetPeerGroup.

If this is all documented some where - please just point me to the docs. 

Thanks
Dan Galewsky
Symbiont Healthcare Systems