try {
final URL url = new URL(p.getUrl());
final String requestingHost = getRequestingHost();
final String expectedHost = url.getHost();
if (requestingHost.equalsIgnoreCase(expectedHost))
return new PasswordAuthentication(p.getAuthUserName(),
try {
final URL url = new URL(p.getUrl());
final String requestingHost = getRequestingHost();
final String expectedHost = url.getHost();
if (requestingHost.equalsIgnoreCase(expectedHost))
return new PasswordAuthentication(p.getAuthUserName(),