7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
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
21 * questions.
22 */
23
24 /**
25 * @test
26 * @bug 4432213
27 * @run main/othervm -Dhttp.auth.digest.validateServer=true DigestTest
28 * @summary Need to support Digest Authentication for Proxies
29 */
30
31 import java.io.*;
32 import java.util.*;
33 import java.net.*;
34 import java.security.*;
35 import sun.net.www.*;
36
37 /* This is one simple test of the RFC2617 digest authentication behavior
38 * It specifically tests that the client correctly checks the returned
39 * Authentication-Info header field from the server and throws an exception
40 * if the password is wrong
41 */
42
43 class DigestServer extends Thread {
44
45 ServerSocket s;
46 Socket s1;
|
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
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
21 * questions.
22 */
23
24 /**
25 * @test
26 * @bug 4432213
27 * @modules java.base/sun.net.www
28 * @run main/othervm -Dhttp.auth.digest.validateServer=true DigestTest
29 * @summary Need to support Digest Authentication for Proxies
30 */
31
32 import java.io.*;
33 import java.util.*;
34 import java.net.*;
35 import java.security.*;
36 import sun.net.www.*;
37
38 /* This is one simple test of the RFC2617 digest authentication behavior
39 * It specifically tests that the client correctly checks the returned
40 * Authentication-Info header field from the server and throws an exception
41 * if the password is wrong
42 */
43
44 class DigestServer extends Thread {
45
46 ServerSocket s;
47 Socket s1;
|