mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-27 21:29:12 +00:00
HTTPCLIENT-1585: SSLContextBuilder to preserve natural order of trust / key managers when loading trust / ket material from multiple sources
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1644005 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5a192e2bf4
commit
babafa8c41
@ -39,7 +39,7 @@
|
||||
import java.security.cert.CertificateException;
|
||||
import java.security.cert.X509Certificate;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
@ -74,8 +74,8 @@ public class SSLContextBuilder {
|
||||
|
||||
public SSLContextBuilder() {
|
||||
super();
|
||||
this.keymanagers = new HashSet<KeyManager>();
|
||||
this.trustmanagers = new HashSet<TrustManager>();
|
||||
this.keymanagers = new LinkedHashSet<KeyManager>();
|
||||
this.trustmanagers = new LinkedHashSet<TrustManager>();
|
||||
}
|
||||
|
||||
public SSLContextBuilder useTLS() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user