From d460c0682d6555822cb48d2a9e6db13d1e48cf48 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 18 Nov 2014 16:03:27 +0100 Subject: Only handle proxy authentication requests in our authenticator --- src/main/java/org/openslx/network/StaticProxyAuthenticator.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/org/openslx/network') diff --git a/src/main/java/org/openslx/network/StaticProxyAuthenticator.java b/src/main/java/org/openslx/network/StaticProxyAuthenticator.java index a11f1e1..c1d8da7 100644 --- a/src/main/java/org/openslx/network/StaticProxyAuthenticator.java +++ b/src/main/java/org/openslx/network/StaticProxyAuthenticator.java @@ -15,6 +15,8 @@ public class StaticProxyAuthenticator extends Authenticator protected PasswordAuthentication getPasswordAuthentication() { + if ( getRequestorType() != RequestorType.PROXY ) + return super.getPasswordAuthentication(); return new PasswordAuthentication( this.username, this.password.toCharArray() ); } -- cgit v1.2.3-55-g7522