jdk/test/javax/net/ssl/sanity/interop/ClientJSSEServerJSSE.java
changeset 31712 e4d5230193da
parent 28555 c7bf34f7b215
equal deleted inserted replaced
31711:cca718f2fcf0 31712:e4d5230193da
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2015, 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.
    31 import java.security.Security;
    31 import java.security.Security;
    32 
    32 
    33 public class ClientJSSEServerJSSE {
    33 public class ClientJSSEServerJSSE {
    34 
    34 
    35     public static void main(String[] args) throws Exception {
    35     public static void main(String[] args) throws Exception {
    36         // reset the security property to make sure that the algorithms
    36         // reset security properties to make sure that the algorithms
    37         // and keys used in this test are not disabled.
    37         // and keys used in this test are not disabled.
    38         Security.setProperty("jdk.tls.disabledAlgorithms", "");
    38         Security.setProperty("jdk.tls.disabledAlgorithms", "");
    39 
    39         Security.setProperty("jdk.certpath.disabledAlgorithms", "");
    40         // MD5 is used in this test case, don't disable MD5 algorithm.
       
    41         Security.setProperty(
       
    42                 "jdk.certpath.disabledAlgorithms", "MD2, RSA keySize < 1024");
       
    43 
    40 
    44         CipherTest.main(new JSSEFactory(), args);
    41         CipherTest.main(new JSSEFactory(), args);
    45     }
    42     }
    46 
    43 
    47     private static class JSSEFactory extends CipherTest.PeerFactory {
    44     private static class JSSEFactory extends CipherTest.PeerFactory {