ssl - are there some api in java equals to openSSL? -


are there apis in java equals openssl apis such ssl_accept(),ssl_connect,ssl_read(),ssl_write() , on ?

thanks.

this more or less same answer 1 posted your other question.

if turn socket sslsocket using sslsocketfactory.createsocket(socket, string, int, boolean), can still turn server-side sslsocket using sslsocket.setuseclientmode(false), long haven't started read/write using i/o streams of sslsocket (this trigger handshake @ can't change mode after that).

alternatively, can use sslengine. honest, tends harder use. may find examples in ssl implementations of simple, grizzly , jetty (in nio mode).


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -