notnoop
notnoop

Reputation: 59299

SSL and NIO Non-blocking Sockets

How do you recommend making a highly scalable SSL client?

Currently, I'm using plain Sockets to connect to the Apple APNS server which requires a non-HTTP SSL sockets. I considered using the NIO library, but it is lacking a SSLSocketChannel, and I couldn't find a good library or a smooth tutorial on how to roll out your own.

Upvotes: 0

Views: 2304

Answers (1)

ZZ Coder
ZZ Coder

Reputation: 75456

I would recommend you look at Mina SSLFilter,

http://mina.apache.org/report/trunk/apidocs/org/apache/mina/filter/ssl/SslFilter.html

If you don't want use Mina for some reason, you can also look at BouncyCastle JCE, whose SSL handler is easy to hook up with any stream,

http://www.bouncycastle.org/docs/docs1.6/org/bouncycastle/crypto/tls/TlsProtocolHandler.html

Upvotes: 1

Related Questions