test/jdk/sun/security/tools/jarsigner/AltProvider.java
changeset 59104 046e4024e55a
parent 50780 c9f193a8b671
equal deleted inserted replaced
59103:4a09d4df104c 59104:046e4024e55a
     1 /*
     1 /*
     2  * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2016, 2019, 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.
    67                 MOD_SRC_DIR, MOD_DEST_DIR,
    67                 MOD_SRC_DIR, MOD_DEST_DIR,
    68                 "--module-source-path",
    68                 "--module-source-path",
    69                 MOD_SRC_DIR.toString());
    69                 MOD_SRC_DIR.toString());
    70 
    70 
    71         // Create a keystore
    71         // Create a keystore
    72         tool("keytool", "-keystore x.jks -storetype jks -genkeypair" +
    72         tool("keytool", "-keystore x.jks -storetype jks -genkeypair -keyalg dsa" +
    73                 " -storepass changeit -keypass changeit -alias x -dname CN=X")
    73                 " -storepass changeit -keypass changeit -alias x -dname CN=X")
    74                 .shouldHaveExitValue(0);
    74                 .shouldHaveExitValue(0);
    75 
    75 
    76         // Create a jar file
    76         // Create a jar file
    77         JarUtils.createJar("x.jar", "x.jks");
    77         JarUtils.createJar("x.jar", "x.jks");