Source from
here
Add this library to classpath(following is maven project)
Add following line before access https resource:<dependency>
<groupId>org.bouncycastle</groupId> <artifactId>bcprov-jdk16</artifactId> <version>1.46</version> </dependency>
Security.addProvider(new BouncyCastleProvider());
...
HttpClient client = ...
HttpGet get = new HttpGet("https://domain")
client.execute(get,repsonse);
...
本文介绍如何将BouncyCastle库集成到Maven项目中,并通过添加BouncyCastle安全提供者实现HTTPS资源的访问。
8199

被折叠的 条评论
为什么被折叠?



