equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2008, 2017, 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. |
417 |
417 |
418 public static void main(String[] args) throws Exception { |
418 public static void main(String[] args) throws Exception { |
419 // reset the security property to make sure that the algorithms |
419 // reset the security property to make sure that the algorithms |
420 // and keys used in this test are not disabled. |
420 // and keys used in this test are not disabled. |
421 Security.setProperty("jdk.certpath.disabledAlgorithms", "MD2"); |
421 Security.setProperty("jdk.certpath.disabledAlgorithms", "MD2"); |
|
422 Security.setProperty("jdk.tls.disabledAlgorithms", "MD2"); |
422 |
423 |
423 if (debug) |
424 if (debug) |
424 System.setProperty("javax.net.debug", "all"); |
425 System.setProperty("javax.net.debug", "all"); |
425 |
426 |
426 /* |
427 /* |