Re: UnicastSecureType and Jxta Sockets
James Todd <[email protected]> Mon, 20 Jun 2005 09:10:07 -0700
| Newsgroups | gmane.comp.java.jxta.user,gmane.comp.java.jxta.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Dan -
I suspect you will need each participating peer to login/authenticate
followed by exchange and import of one another's certificate ... all
as a precondition to establishing a secure 1to1 connection.
I have done this in MyJXTA as the 1to1 chat dialog. The remote peer's
certificate "finger print" is displayed prior to import via a dialog
panel.
I pulled this together from the wiki content:
login/auth - http://wiki.java.net/bin/view/Jxta/PasswordTopic
importing certs - i don't see the wiki entry off hand
If it will help I can highlight the code w/in MyJXTA that should be
of help to get you started.
hth,
- james
--
James Todd :: blogs.sun.com/gonzo | weblogs.java.net/blog/gonzo
MyJXTA :: use it - learn it - do it
Java == platform independence
XML == application independence
JXTA == network independence
Secure End-to-End Computing
[email protected] wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>