Fadifadi, please review
our naming policy and
update your profile to display both a first and a second name. Thanks.
I don't think the session key is exposed, and even if it were, JSSE does not expose the encryption algorithms used. I must confess I'm not intimately familiar with the secure FTP protocol, but can't you just create a second SSL socket and have it join the session established by the first one (SSL[Server]Socket.setEnableSessionCreation(false))? Never tried it but it looks like it should work.
- Peter