equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2009, 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 6578647 6829283 8171340 |
26 * @bug 6578647 6829283 8171340 8194486 |
27 * @modules java.base/sun.security.util |
27 * @modules java.base/sun.security.util |
28 * java.security.jgss/sun.security.krb5.internal:+open |
28 * java.security.jgss/sun.security.krb5.internal:+open |
29 * java.security.jgss/sun.security.jgss |
29 * java.security.jgss/sun.security.jgss |
30 * java.security.jgss/sun.security.krb5:+open |
30 * java.security.jgss/sun.security.krb5:+open |
31 * java.security.jgss/sun.security.jgss.krb5 |
31 * java.security.jgss/sun.security.jgss.krb5 |
33 * java.security.jgss/sun.security.krb5.internal.crypto |
33 * java.security.jgss/sun.security.krb5.internal.crypto |
34 * java.security.jgss/sun.security.krb5.internal.ktab |
34 * java.security.jgss/sun.security.krb5.internal.ktab |
35 * jdk.security.auth |
35 * jdk.security.auth |
36 * jdk.security.jgss |
36 * jdk.security.jgss |
37 * jdk.httpserver |
37 * jdk.httpserver |
38 * @run main/othervm HttpNegotiateServer |
|
39 * @summary Undefined requesting URL in java.net.Authenticator |
38 * @summary Undefined requesting URL in java.net.Authenticator |
40 * .getPasswordAuthentication() |
39 * .getPasswordAuthentication() |
41 * @summary HTTP/Negotiate: Authenticator triggered again when |
40 * @summary HTTP/Negotiate: Authenticator triggered again when |
42 * user cancels the first one |
41 * user cancels the first one |
|
42 * @library /test/lib |
|
43 * @run main jdk.test.lib.FileInstaller TestHosts TestHosts |
|
44 * @run main/othervm -Djdk.net.hosts.file=TestHosts HttpNegotiateServer |
43 */ |
45 */ |
44 |
46 |
45 import com.sun.net.httpserver.Headers; |
47 import com.sun.net.httpserver.Headers; |
46 import com.sun.net.httpserver.HttpContext; |
48 import com.sun.net.httpserver.HttpContext; |
47 import com.sun.net.httpserver.HttpExchange; |
49 import com.sun.net.httpserver.HttpExchange; |