test/jdk/sun/security/tools/keytool/KeyToolTest.java
changeset 51944 28085dba5d9a
parent 49882 a02abc7e5536
child 52598 0379b618ec46
equal deleted inserted replaced
51943:5e9c922eafbc 51944:28085dba5d9a
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  *
    25  * @test
    26  *
    26  * @author weijun.wang
    27  * @summary Testing keytool
    27  * @summary Testing keytool
    28  * @author weijun.wang
       
    29  *
    28  *
    30  * Run through autotest.sh and manualtest.sh
    29  * Run through autotest.sh and manualtest.sh
    31  *
    30  *
    32  * Testing non-PKCS11 keystores:
    31  * Testing non-PKCS11 keystores:
    33  *       echo | java -Dfile KeyToolTest
    32  *       echo | java -Dfile KeyToolTest
    52  *       ...
    51  *       ...
    53  * been observed. Possibly a Solaris bug
    52  * been observed. Possibly a Solaris bug
    54  *
    53  *
    55  * ATTENTION:
    54  * ATTENTION:
    56  * NSS PKCS11 config file are changed, DSA not supported now.
    55  * NSS PKCS11 config file are changed, DSA not supported now.
       
    56  *
       
    57  * @library /test/lib
       
    58  * @modules java.base/sun.security.tools.keytool
       
    59  *          java.base/sun.security.util
       
    60  *          java.base/sun.security.x509
       
    61  * @run main/othervm/timeout=600 -Dfile KeyToolTest
    57  */
    62  */
    58 
    63 
    59 import java.nio.file.Files;
    64 import java.nio.file.Files;
    60 import java.nio.file.Paths;
    65 import java.nio.file.Paths;
    61 import java.security.KeyStore;
    66 import java.security.KeyStore;
    65 import java.security.NoSuchAlgorithmException;
    70 import java.security.NoSuchAlgorithmException;
    66 import java.util.*;
    71 import java.util.*;
    67 import java.security.cert.X509Certificate;
    72 import java.security.cert.X509Certificate;
    68 import jdk.test.lib.util.FileUtils;
    73 import jdk.test.lib.util.FileUtils;
    69 import sun.security.util.ObjectIdentifier;
    74 import sun.security.util.ObjectIdentifier;
       
    75 
    70 
    76 
    71 public class KeyToolTest {
    77 public class KeyToolTest {
    72 
    78 
    73     // The stdout and stderr outputs after a keytool run
    79     // The stdout and stderr outputs after a keytool run
    74     String out;
    80     String out;