equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2014, 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. |
7 * published by the Free Software Foundation. |
30 */ |
30 */ |
31 |
31 |
32 import java.io.*; |
32 import java.io.*; |
33 import java.net.*; |
33 import java.net.*; |
34 import javax.net.ssl.*; |
34 import javax.net.ssl.*; |
|
35 import java.security.Security; |
35 |
36 |
36 public class HttpsProtocols implements HostnameVerifier { |
37 public class HttpsProtocols implements HostnameVerifier { |
37 |
38 |
38 /* |
39 /* |
39 * ============================================================= |
40 * ============================================================= |
175 |
176 |
176 volatile Exception serverException = null; |
177 volatile Exception serverException = null; |
177 volatile Exception clientException = null; |
178 volatile Exception clientException = null; |
178 |
179 |
179 public static void main(String[] args) throws Exception { |
180 public static void main(String[] args) throws Exception { |
|
181 // reset the security property to make sure that the algorithms |
|
182 // and keys used in this test are not disabled. |
|
183 Security.setProperty("jdk.tls.disabledAlgorithms", ""); |
|
184 |
180 String keyFilename = |
185 String keyFilename = |
181 System.getProperty("test.src", "./") + "/" + pathToStores + |
186 System.getProperty("test.src", "./") + "/" + pathToStores + |
182 "/" + keyStoreFile; |
187 "/" + keyStoreFile; |
183 String trustFilename = |
188 String trustFilename = |
184 System.getProperty("test.src", "./") + "/" + pathToStores + |
189 System.getProperty("test.src", "./") + "/" + pathToStores + |