19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
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 |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
|
24 /* |
|
25 * @test |
|
26 * @bug 8159964 |
|
27 * @summary Classes from deprivileged modules should get loaded through |
|
28 * Platform Classloader. |
|
29 * @modules java.xml.crypto |
|
30 * jdk.security.auth |
|
31 * jdk.security.jgss |
|
32 * @run main DeprivilegedModuleLoaderTest |
|
33 */ |
|
34 |
24 import java.io.File; |
35 import java.io.File; |
25 import java.util.ArrayList; |
36 import java.util.ArrayList; |
26 import java.util.List; |
37 import java.util.List; |
27 import javax.security.auth.kerberos.KeyTab; |
38 import javax.security.auth.kerberos.KeyTab; |
28 import javax.xml.crypto.KeySelectorException; |
39 import javax.xml.crypto.KeySelectorException; |
29 import javax.xml.crypto.dsig.XMLSignatureFactory; |
40 import javax.xml.crypto.dsig.XMLSignatureFactory; |
30 import com.sun.security.auth.callback.TextCallbackHandler; |
41 import com.sun.security.auth.callback.TextCallbackHandler; |
31 import com.sun.security.jgss.AuthorizationDataEntry; |
42 import com.sun.security.jgss.AuthorizationDataEntry; |
32 |
43 |
33 /* |
|
34 * @test |
|
35 * @bug 8159964 |
|
36 * @summary Classes from deprivileged modules should get loaded through |
|
37 * Platform Classloader. |
|
38 * @run main DeprivilegedModuleLoaderTest |
|
39 */ |
|
40 public class DeprivilegedModuleLoaderTest { |
44 public class DeprivilegedModuleLoaderTest { |
41 |
45 |
42 public static void main(String[] args) { |
46 public static void main(String[] args) { |
43 |
47 |
44 boolean pass = true; |
48 boolean pass = true; |