Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

server/client design: security handling concern

Thread view: 
puzzlecracker - 21 Sep 2006 00:29 GMT
Here my general road map.... for multithreaded chat program
(client/server):

Client sends users name, server responds with SecretKey,  then users
send the encrypted password. Server responds with ConnectionObject to
indicate the status. All the communication between client and server is
encrypted thereafter.

it is pretty simple program, and I am  thinking of using NIO .. What is
the good architecture for such problem?

what is de facto way to approach the design. Thanks
Thomas Hawtin - 21 Sep 2006 16:16 GMT
> Client sends users name, server responds with SecretKey,  then users
> send the encrypted password. Server responds with ConnectionObject to
> indicate the status. All the communication between client and server is
> encrypted thereafter.

The server responds by sending a secret key in the clear?

I suggest using existing procedures/protocols/standards/code. See
javax.net.ssl, for instance.

> it is pretty simple program, and I am  thinking of using NIO .. What is
> the good architecture for such problem?

I guess start by googling "reactor pattern".

Admittedly, I don't have a copy of this volume, or have even read it,
but "Pattern-oriented Software Architecture Vol 2: Patterns for
Concurrent and Networked Objects" seems to fit:

http://www.amazon.co.uk/gp/product/0471606952/

Tom Hawtin
Signature

Unemployed English Java programmer
http://jroller.com/page/tackline/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.