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 / Security / January 2004

Tip: Looking for answers? Try searching our database.

Customizing JSSE dynamically

Thread view: 
Hugo - 23 Jan 2004 16:40 GMT
Hello everybody,

Here is my request:
I would like to let users choose (via a GUI) the parameters of the TLS
connection he's about to make. For example, I would likt to let him
choose the encryption algorithms, the signature algorithms, and so on.
I would like to do this in order to enahnce security between two peers
by limiting the algorithms available during the handshake. Could
someone tell me how to proceed ?

Thank you

Hugo
JK - 23 Jan 2004 16:58 GMT
This is roughly what you have to do:

- Decide, which one is the server (opens the server socket)

Both sides:
- Create a SSLContext ctx
- Get the supported cipher suites with
    ctx.getSupportedCipherSuites()
- Let the user choose one from a ComboBox or whatever
- SSL(Server)Socket socket = SSL(Server)Socket
    ctx.create(Server)Socket();
- socket.setEnabledCipherSuites(<user's choice>)

Server:
- maybe also socket.setNeedClientAuth(true)

Regards
JK.

> Hello everybody,
>
[quoted text clipped - 9 lines]
>
> Hugo
Hugo - 26 Jan 2004 13:05 GMT
Thank you for your quick answer.
I think I will be able to manage my problem with your solution.
Thanks again.

Hugo

> This is roughly what you have to do:
>
[quoted text clipped - 28 lines]
> >
> > Hugo


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.