< prev index next >

test/sun/security/tools/keytool/WeakAlg.java

Print this page
rev 17325 : 8181761: add explicit @build actions for jdk.test.lib classes in all :tier2 tests
Reviewed-by: duke


  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8171319 8177569
  27  * @summary keytool should print out warnings when reading or generating
  28   *         cert/cert req using weak algorithms
  29  * @library /test/lib
  30  * @modules java.base/sun.security.tools.keytool
  31  *          java.base/sun.security.tools
  32  *          java.base/sun.security.util







  33  * @run main/othervm/timeout=600 -Duser.language=en -Duser.country=US WeakAlg
  34  */
  35 
  36 import jdk.test.lib.SecurityTools;
  37 import jdk.test.lib.process.OutputAnalyzer;
  38 import sun.security.tools.KeyStoreUtil;
  39 import sun.security.util.DisabledAlgorithmConstraints;
  40 
  41 import java.io.ByteArrayInputStream;
  42 import java.io.ByteArrayOutputStream;
  43 import java.io.IOException;
  44 import java.io.InputStream;
  45 import java.io.PrintStream;
  46 import java.nio.file.Files;
  47 import java.nio.file.Paths;
  48 import java.nio.file.StandardCopyOption;
  49 import java.security.CryptoPrimitive;
  50 import java.security.KeyStore;
  51 import java.security.cert.X509Certificate;
  52 import java.util.Collections;




  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8171319 8177569
  27  * @summary keytool should print out warnings when reading or generating
  28   *         cert/cert req using weak algorithms
  29  * @library /test/lib
  30  * @modules java.base/sun.security.tools.keytool
  31  *          java.base/sun.security.tools
  32  *          java.base/sun.security.util
  33  * @build jdk.test.lib.SecurityTools
  34  *        jdk.test.lib.Utils
  35  *        jdk.test.lib.Asserts
  36  *        jdk.test.lib.JDKToolFinder
  37  *        jdk.test.lib.JDKToolLauncher
  38  *        jdk.test.lib.Platform
  39  *        jdk.test.lib.process.*
  40  * @run main/othervm/timeout=600 -Duser.language=en -Duser.country=US WeakAlg
  41  */
  42 
  43 import jdk.test.lib.SecurityTools;
  44 import jdk.test.lib.process.OutputAnalyzer;
  45 import sun.security.tools.KeyStoreUtil;
  46 import sun.security.util.DisabledAlgorithmConstraints;
  47 
  48 import java.io.ByteArrayInputStream;
  49 import java.io.ByteArrayOutputStream;
  50 import java.io.IOException;
  51 import java.io.InputStream;
  52 import java.io.PrintStream;
  53 import java.nio.file.Files;
  54 import java.nio.file.Paths;
  55 import java.nio.file.StandardCopyOption;
  56 import java.security.CryptoPrimitive;
  57 import java.security.KeyStore;
  58 import java.security.cert.X509Certificate;
  59 import java.util.Collections;


< prev index next >