..
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package com.arialyy.aria.util;
|
||||
|
||||
import android.text.TextUtils;
|
||||
import com.arialyy.aria.core.DownloadManager;
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.FileInputStream;
|
||||
@ -37,6 +38,9 @@ public class SSLContextUtil {
|
||||
* @param caPath 保存在assets目录下的CA证书完整路径
|
||||
*/
|
||||
public static SSLContext getSSLContext(String caAlias, String caPath) {
|
||||
if (TextUtils.isEmpty(caAlias) || TextUtils.isEmpty(caPath)){
|
||||
return null;
|
||||
}
|
||||
// Load CAs from an InputStream
|
||||
// (could be from a resource or ByteArrayInputStream or ...)
|
||||
CertificateFactory cf = null;
|
||||
|
@ -17,7 +17,7 @@
|
||||
## 下载
|
||||
[](https://bintray.com/arialyy/maven/Aria/_latestVersion)</br>
|
||||
```java
|
||||
compile 'com.arialyy.aria:Aria:2.3.9'
|
||||
compile 'com.arialyy.aria:Aria:2.4.0'
|
||||
```
|
||||
|
||||
## 示例
|
||||
@ -121,7 +121,11 @@ Aria支持https下载,如果你希望使用自己的ca证书,那么你需要
|
||||
### https证书配置
|
||||
+ 将你的证书导入`assets`目录
|
||||
+ 调用以下代码配置ca证书相关信息
|
||||
<<<<<<< HEAD
|
||||
|
||||
=======
|
||||
|
||||
>>>>>>> v_2.0
|
||||
```java
|
||||
/**
|
||||
* 设置CA证书信息
|
||||
@ -134,7 +138,7 @@ Aria支持https下载,如果你希望使用自己的ca证书,那么你需要
|
||||
|
||||
***
|
||||
## 开发日志
|
||||
+ v_2.3.9 支持https链接下载
|
||||
+ v_2.4.0 支持https链接下载
|
||||
+ v_2.3.8 修复数据错乱的bug、添加fragment支持
|
||||
+ v_2.3.6 添加dialog、popupWindow支持
|
||||
+ v_2.3.3
|
||||
|
Reference in New Issue
Block a user