jdk/test/sun/security/ssl/ClientHandshaker/CipherSuiteOrder.java
changeset 29902 dc24eacaae11
parent 23052 241885315119
equal deleted inserted replaced
29901:7288f904fbe8 29902:dc24eacaae11
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 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.
    32  *     system properties in samevm/agentvm mode.
    32  *     system properties in samevm/agentvm mode.
    33  * @author Jaya Hangal
    33  * @author Jaya Hangal
    34  */
    34  */
    35 
    35 
    36 import java.io.*;
    36 import java.io.*;
    37 import java.net.*;
    37 import java.security.Security;
    38 import javax.net.ssl.*;
    38 import javax.net.ssl.*;
    39 
    39 
    40 public class CipherSuiteOrder {
    40 public class CipherSuiteOrder {
    41 
    41 
    42     /*
    42     /*
   194 
   194 
   195     volatile Exception serverException = null;
   195     volatile Exception serverException = null;
   196     volatile Exception clientException = null;
   196     volatile Exception clientException = null;
   197 
   197 
   198     public static void main(String[] args) throws Exception {
   198     public static void main(String[] args) throws Exception {
       
   199         // reset the security property to make sure that the algorithms
       
   200         // and keys used in this test are not disabled.
       
   201         Security.setProperty("jdk.tls.disabledAlgorithms", "");
       
   202 
   199         String keyFilename =
   203         String keyFilename =
   200             System.getProperty("test.src", "./") + "/" + pathToStores +
   204             System.getProperty("test.src", "./") + "/" + pathToStores +
   201                 "/" + keyStoreFile;
   205                 "/" + keyStoreFile;
   202         String trustFilename =
   206         String trustFilename =
   203             System.getProperty("test.src", "./") + "/" + pathToStores +
   207             System.getProperty("test.src", "./") + "/" + pathToStores +