• Post Reply Bookmark Topic Watch Topic
  • New Topic

sending objects thorough socket connection

 
J Krem
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay,
I want to connect to another machine (using a simple socket connection), and then I want to setup my in/out streams so I can send objects over the wire (and also receive them). Can i do this with simple socket connections?
For example, I want to send certificate objects through the connection..
(i cannot use SSL)

Am i doing it right
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See if ObjectInputStream and OutputStream do the job for you. From the doc: "uses include passing objects between hosts using a socket stream or for marshaling and unmarshaling arguments and parameters in a remote communication system."
 
J Krem
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i'll look into the objectstream..thanks
Also, i wanted to find out if i can use keymanagerfactory and trustmanagerfactory with normal sockets or do i HAVE to use SSL sockets?
You see i want to manage keys and certificates across a normal socket connection..not using ssl..what is the best course of action?
Thank you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!