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:
Oleg Kalnichevski 2014-01-25 16:18:05 +00:00
parent f04d653be3
commit 653ae8026c
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}