Android实现https网络访问

上传者: ncepu307 | 上传时间: 2021-06-29 10:47:32 | 文件大小: 46KB | 文件类型: ZIP
Android实现https网络访问,四种实现方式:1、客户端添加指定信任cer证书。2、客户端信任所有证书。3、HttpClient方式实现,支持所有Https免验证方式链接(与2类似,只不过采用HttpClient方式实现)。4、HttpClient方式实现,支持验证指定证书(与1类似,只不过采用HttpClient方式实现)

文件下载

资源详情

[{"title":"( 20 个子文件 46KB ) Android实现https网络访问","children":[{"title":"HttpsTest","children":[{"title":"bin","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.18KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 14.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 115B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.11KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"main.xml <span style='color:#111;'> 479B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"proguard-project.txt <span style='color:#111;'> 801B </span>","children":null,"spread":false},{"title":"ant.properties <span style='color:#111;'> 698B </span>","children":null,"spread":false},{"title":"build.xml <span style='color:#111;'> 3.92KB </span>","children":null,"spread":false},{"title":"assets","children":[{"title":"load-der.crt <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false}],"spread":true},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"httpstest","children":[{"title":"BuildConfig.java <span style='color:#111;'> 263B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 177B </span>","children":null,"spread":false},{"title":"Manifest.java <span style='color:#111;'> 191B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"example","children":[{"title":"httpstest","children":[{"title":"HttpsTestActivity.java <span style='color:#111;'> 9.14KB </span>","children":null,"spread":false},{"title":"TrustAllSSLSocketFactory.java <span style='color:#111;'> 4.42KB </span>","children":null,"spread":false},{"title":"TrustCertainHostNameFactory.java <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"HttpsTest.iml <span style='color:#111;'> 727B </span>","children":null,"spread":false},{"title":"local.properties <span style='color:#111;'> 448B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 810B </span>","children":null,"spread":false},{"title":"libs","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • kai909 :
    没用到,不好用
    2019-05-10

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明