security - Secure TCP Connections in Java -
i wondering best way secure tcp connection in java. want communications server come authenticated clients , possible, encrypt transmitted data.
what sort of issues going need watch out , cover, technologies use?
thanks,
tim.
the usual way ssl, said. supports (obligatory) server authentication , encryption default, client authentication optional (e.g. depending on configuration - server can make sure clients authenticated).
in java, can use sslsocket (and sslserversocket) (or respective factory classes), or sslengine (if want nonblocking io). or higher level api uses under cover.
another option ssh protocol. allows encrypted , (normally) both-side authenticated connection, on 1 can route multiple channels. used remote command execution or file transfer, allows port-forwarding.
in java implemented (on client side) example jsch. know of no server-side java implementation - can use normal openssh server , forward ports java server process.
Comments
Post a Comment