安卓抛出:NoSuchAlgorithmException:"未发现的SSL连接SSL实现" [英] Android NoSuchAlgorithmException: "SSLContext SSL implementation not found"

查看:243
本文介绍了安卓抛出:NoSuchAlgorithmException:"未发现的SSL连接SSL实现"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SSLContext context = SSLContext.getInstance("SSL");

上面的代码导致异常:

The above line results in the exception:

java.security.NoSuchAlgorithmException: SSLContext SSL implementation not found

我用 Android 2.0的SDK 并指定TLS时,它被接受。

I'm using Android 2.0 SDK and when specifying "TLS", it is accepted.

来如何我得到的异常?不支持Android SSL?

How come I get the exception? Doesn't Android support SSL?

推荐答案

如果您使用的是默认的和谐JSSE,TLS则是它支持的唯一协议,这是一样的SSLv3。

If you are using the default Harmony JSSE, "TLS" is the only protocol it supports, which is the same as SSLv3.

您必须找到另一个JSSE如果你需要使用SSL的旧版本。

You have to find another JSSE if you need to use an older version of SSL.

这篇关于安卓抛出:NoSuchAlgorithmException:"未发现的SSL连接SSL实现"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆