equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 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. |
29 |
29 |
30 import javax.security.auth.login.LoginException; |
30 import javax.security.auth.login.LoginException; |
31 |
31 |
32 /* |
32 /* |
33 * @test |
33 * @test |
34 * @bug 8025123 |
34 * @bug 8025123 8194486 |
35 * @summary Checks if an unbound server can handle connections |
35 * @summary Checks if an unbound server can handle connections |
36 * only for allowed service principals |
36 * only for allowed service principals |
37 * @run main/othervm/policy=unbound.ssl.policy UnboundSSL |
37 * @library /test/lib |
38 * unbound.ssl.jaas.conf server_star |
38 * @run main jdk.test.lib.FileInstaller TestHosts TestHosts |
39 * @run main/othervm/policy=unbound.ssl.policy UnboundSSL |
39 * @run main/othervm/policy=unbound.ssl.policy -Djdk.net.hosts.file=TestHosts |
40 * unbound.ssl.jaas.conf server_multiple_principals |
40 * UnboundSSL unbound.ssl.jaas.conf server_star |
|
41 * @run main/othervm/policy=unbound.ssl.policy -Djdk.net.hosts.file=TestHosts |
|
42 * UnboundSSL unbound.ssl.jaas.conf server_multiple_principals |
41 */ |
43 */ |
42 public class UnboundSSL { |
44 public class UnboundSSL { |
43 |
45 |
44 public static void main(String[] args) throws IOException, |
46 public static void main(String[] args) throws IOException, |
45 NoSuchAlgorithmException,LoginException, PrivilegedActionException, |
47 NoSuchAlgorithmException,LoginException, PrivilegedActionException, |