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 // SunJSSE does not support dynamic system properties, no way to re-use
25 // system properties in samevm/agentvm mode.
26
27 /*
28 * @test
29 * @bug 4329114
30 * @summary Need better way of reflecting the reason when a chain is
31 * rejected as untrusted.
32 * @ignore JSSE supports algorithm constraints with CR 6916074,
33 * need to update this test case in JDK 7 soon
34 * @run main/othervm CheckMyTrustedKeystore
35 *
36 * @author Brad Wetmore
37 */
38
39 // This is a serious hack job!
40
41 import java.io.*;
42 import java.net.*;
43 import java.security.*;
44 import javax.net.ssl.*;
45 import java.security.cert.*;
46
47 public class CheckMyTrustedKeystore {
48
49 /*
50 * =============================================================
51 * Set the various variables needed for the tests, then
|
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 // SunJSSE does not support dynamic system properties, no way to re-use
25 // system properties in samevm/agentvm mode.
26
27 /*
28 * @test
29 * @bug 4329114
30 * @summary Need better way of reflecting the reason when a chain is
31 * rejected as untrusted.
32 * @modules java.base/com.sun.net.ssl
33 * @ignore JSSE supports algorithm constraints with CR 6916074,
34 * need to update this test case in JDK 7 soon
35 * @run main/othervm CheckMyTrustedKeystore
36 *
37 * @author Brad Wetmore
38 */
39
40 // This is a serious hack job!
41
42 import java.io.*;
43 import java.net.*;
44 import java.security.*;
45 import javax.net.ssl.*;
46 import java.security.cert.*;
47
48 public class CheckMyTrustedKeystore {
49
50 /*
51 * =============================================================
52 * Set the various variables needed for the tests, then
|