Use Java 1.6 method to obtain default system SSLContext
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1561331 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f04d653be3
commit
653ae8026c
|
@ -72,7 +72,7 @@ public class SSLContexts {
|
|||
*/
|
||||
public static SSLContext createSystemDefault() throws SSLInitializationException {
|
||||
try {
|
||||
return SSLContext.getInstance("Default");
|
||||
return SSLContext.getDefault();
|
||||
} catch (final NoSuchAlgorithmException ex) {
|
||||
return createDefault();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue