1 /* |
1 /* |
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2018, 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. |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 6355584 |
26 * @bug 6355584 8194486 |
27 * @summary Introduce constrained Kerberos delegation |
27 * @summary Introduce constrained Kerberos delegation |
|
28 * @library /test/lib |
28 * @compile -XDignore.symbol.file S4U2self.java |
29 * @compile -XDignore.symbol.file S4U2self.java |
29 * @run main/othervm -Dsun.security.krb5.debug=false S4U2self krb5 0 |
30 * @run main jdk.test.lib.FileInstaller TestHosts TestHosts |
30 * @run main/othervm/fail -Dsun.security.krb5.debug=false S4U2self krb5 1 |
31 * @run main/othervm -Djdk.net.hosts.file=TestHosts |
31 * @run main/othervm/fail -Dsun.security.krb5.debug=false S4U2self krb5 2 |
32 * -Dsun.security.krb5.debug=false S4U2self krb5 0 |
32 * @run main/othervm/fail -Dsun.security.krb5.debug=false S4U2self krb5 3 |
33 * @run main/othervm/fail -Djdk.net.hosts.file=TestHosts |
33 * @run main/othervm/fail -Dsun.security.krb5.debug=false S4U2self krb5 4 |
34 * -Dsun.security.krb5.debug=false S4U2self krb5 1 |
34 * @run main/othervm/fail -Dsun.security.krb5.debug=false S4U2self krb5 5 |
35 * @run main/othervm/fail -Djdk.net.hosts.file=TestHosts |
35 * @run main/othervm -Dsun.security.krb5.debug=false S4U2self spnego |
36 * -Dsun.security.krb5.debug=false S4U2self krb5 2 |
|
37 * @run main/othervm/fail -Djdk.net.hosts.file=TestHosts |
|
38 * -Dsun.security.krb5.debug=false S4U2self krb5 3 |
|
39 * @run main/othervm/fail -Djdk.net.hosts.file=TestHosts |
|
40 * -Dsun.security.krb5.debug=false S4U2self krb5 4 |
|
41 * @run main/othervm/fail -Djdk.net.hosts.file=TestHosts |
|
42 * -Dsun.security.krb5.debug=false S4U2self krb5 5 |
|
43 * @run main/othervm -Djdk.net.hosts.file=TestHosts |
|
44 * -Dsun.security.krb5.debug=false S4U2self spnego |
36 */ |
45 */ |
37 |
46 |
38 import java.util.Arrays; |
47 import java.util.Arrays; |
39 import java.util.HashMap; |
48 import java.util.HashMap; |
40 import java.util.List; |
49 import java.util.List; |