/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* @test
* @bug 4722333
* @build HttpCallback HttpServer ClosedChannelList HttpTransaction
* @run main B4722333
* @summary JRE Proxy Authentication Not Working with ISA2000
*/
{"basic", "foo"},
{"basic", "foobar"},
{"digest", "biz"},
{"digest", "bizbar"},
{"digest", "foobiz"}
};
try {
req.orderlyClose();
} else {
switch (count) {
case 0:
req.orderlyClose();
break;
case 2:
break;
case 4:
req.orderlyClose();
break;
case 6:
req.addResponseHeader ("WWW-Authenticate", "Digest realm=\"bizbar\" domain=/biz nonce=\"hereisanonce\" Basic realm=\"foobar\" Foo realm=\"bar\"");
req.orderlyClose();
break;
case 8:
req.addResponseHeader ("WWW-Authenticate", "Foo p1=1 p2=2 p3=3 p4=4 p5=5 p6=6 p7=7 p8=8 p9=10 Digest realm=foobiz domain=/foobiz nonce=newnonce");
req.orderlyClose();
break;
}
}
count ++;
} catch (IOException e) {
e.printStackTrace();
}
}
int c;
}
}
}
try {
} catch (Exception e) {
}
throw e;
}
}
}
throw new RuntimeException (s);
}
MyAuthenticator () {
super ();
}
{
}
}
count ++;
}
public int getCount () {
return (count);
}
}
}