开发者

Android + NIO + SSL. Does anyone have some good example code?

I'm looking for some good examplecode that implements a java (Android!) NIO client with SSL support. I've stumbled upon SSLEngine but I'm not sure whether I should even continue to look into that direction since some sources claim that Androids SSLEngine isn't stable.

The server I've implemented is written in Twisted Python and the used factory is implemented as follows:

class ServerTLSContextFactory(ssl.DefaultOpenSSLContextFactory):
    def __init__(self, *args, **kw):
        kw['sslmethod'] = SSL.TLSv1_METHOD
        ssl.DefaultOpenSSLContextFactory.__init__(self, *args, **kw)

Does anyone have a good imp开发者_如何转开发lementation (or wrapper for NIO) that I could use?

Thanks in advance!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜