jdk/src/share/classes/javax/net/ssl/SSLSocketFactory.java
changeset 10596 39b3a979e600
parent 7039 6464c8e62a18
child 14194 971f46db533d
equal deleted inserted replaced
10595:c5be3e19fbab 10596:39b3a979e600
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    93             propertyChecked = true;
    93             propertyChecked = true;
    94             String clsName = getSecurityProperty("ssl.SocketFactory.provider");
    94             String clsName = getSecurityProperty("ssl.SocketFactory.provider");
    95             if (clsName != null) {
    95             if (clsName != null) {
    96                 log("setting up default SSLSocketFactory");
    96                 log("setting up default SSLSocketFactory");
    97                 try {
    97                 try {
    98                     Class cls = null;
    98                     Class<?> cls = null;
    99                     try {
    99                     try {
   100                         cls = Class.forName(clsName);
   100                         cls = Class.forName(clsName);
   101                     } catch (ClassNotFoundException e) {
   101                     } catch (ClassNotFoundException e) {
   102                         ClassLoader cl = ClassLoader.getSystemClassLoader();
   102                         ClassLoader cl = ClassLoader.getSystemClassLoader();
   103                         if (cl != null) {
   103                         if (cl != null) {