10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 4667976
27 * @compile JavaxSSLContextImpl.java ComSSLContextImpl.java
28 * JavaxTrustManagerFactoryImpl.java ComTrustManagerFactoryImpl.java
29 * JavaxKeyManagerFactoryImpl.java ComKeyManagerFactoryImpl.java
30 * @summary brokenness in the com.sun.net.ssl.SSLSecurity wrappers
31 */
32
33 import java.security.*;
34 import com.sun.net.ssl.*;
35
36 public class ProviderTest {
37
38 public static void main(String args[]) throws Exception {
39 SSLContext sslc;
40 TrustManagerFactory tmf;
41 KeyManagerFactory kmf;
42
43 Provider extraProvider = new MyProvider();
44 Security.addProvider(extraProvider);
45 try {
46 System.out.println("getting a javax SSLContext");
47 sslc = SSLContext.getInstance("javax");
48 sslc.init(null, null, null);
49 System.out.println("\ngetting a com SSLContext");
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 4667976
27 * @compile JavaxSSLContextImpl.java ComSSLContextImpl.java
28 * JavaxTrustManagerFactoryImpl.java ComTrustManagerFactoryImpl.java
29 * JavaxKeyManagerFactoryImpl.java ComKeyManagerFactoryImpl.java
30 * @run main ProviderTest
31 * @summary brokenness in the com.sun.net.ssl.SSLSecurity wrappers
32 */
33
34 import java.security.*;
35 import com.sun.net.ssl.*;
36
37 public class ProviderTest {
38
39 public static void main(String args[]) throws Exception {
40 SSLContext sslc;
41 TrustManagerFactory tmf;
42 KeyManagerFactory kmf;
43
44 Provider extraProvider = new MyProvider();
45 Security.addProvider(extraProvider);
46 try {
47 System.out.println("getting a javax SSLContext");
48 sslc = SSLContext.getInstance("javax");
49 sslc.init(null, null, null);
50 System.out.println("\ngetting a com SSLContext");
|