mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-05 10:12:35 +00:00
8166378: Missing dependencies in several java/security tests
Reviewed-by: xuelei
This commit is contained in:
parent
9bdef15573
commit
3847822589
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -31,7 +31,7 @@ import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
/*
|
||||
* @test
|
||||
* @bug 8048362
|
||||
* @compile ../../../lib/testlibrary/JavaToolUtils.java
|
||||
@ -41,6 +41,7 @@ import java.util.List;
|
||||
* DoPrivAccmplice.jar for reading user.home property from a PrivilagedAction.
|
||||
* Run DoPrivTest.jar and try to access user.home property using
|
||||
* DoPrivAccmplice.jar.
|
||||
* @modules jdk.compiler
|
||||
* @run main/othervm DoPrivAccompliceTest
|
||||
*/
|
||||
|
||||
|
||||
@ -21,6 +21,17 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @bug 8159964
|
||||
* @summary Classes from deprivileged modules should get loaded through
|
||||
* Platform Classloader.
|
||||
* @modules java.xml.crypto
|
||||
* jdk.security.auth
|
||||
* jdk.security.jgss
|
||||
* @run main DeprivilegedModuleLoaderTest
|
||||
*/
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@ -30,13 +41,6 @@ import javax.xml.crypto.dsig.XMLSignatureFactory;
|
||||
import com.sun.security.auth.callback.TextCallbackHandler;
|
||||
import com.sun.security.jgss.AuthorizationDataEntry;
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @bug 8159964
|
||||
* @summary Classes from deprivileged modules should get loaded through
|
||||
* Platform Classloader.
|
||||
* @run main DeprivilegedModuleLoaderTest
|
||||
*/
|
||||
public class DeprivilegedModuleLoaderTest {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
@ -21,15 +21,20 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
import java.security.*;
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @bug 8161571
|
||||
* @summary Reject signatures presented for verification that contain extra
|
||||
* bytes.
|
||||
* @modules jdk.crypto.ec
|
||||
* @run main SignatureLength
|
||||
*/
|
||||
|
||||
import java.security.KeyPair;
|
||||
import java.security.KeyPairGenerator;
|
||||
import java.security.Signature;
|
||||
import java.security.SignatureException;
|
||||
|
||||
public class SignatureLength {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user