You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2014/08/18 09:39:26 UTC
svn commit: r1618553 -
/httpcomponents/httpclient/trunk/httpclient-win/src/main/java/org/apache/http/impl/auth/win/WindowsNegotiateScheme.java
Author: olegk
Date: Mon Aug 18 07:39:26 2014
New Revision: 1618553
URL: http://svn.apache.org/r1618553
Log:
Catch Exception instead of Throwable
Modified:
httpcomponents/httpclient/trunk/httpclient-win/src/main/java/org/apache/http/impl/auth/win/WindowsNegotiateScheme.java
Modified: httpcomponents/httpclient/trunk/httpclient-win/src/main/java/org/apache/http/impl/auth/win/WindowsNegotiateScheme.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-win/src/main/java/org/apache/http/impl/auth/win/WindowsNegotiateScheme.java?rev=1618553&r1=1618552&r2=1618553&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-win/src/main/java/org/apache/http/impl/auth/win/WindowsNegotiateScheme.java (original)
+++ httpcomponents/httpclient/trunk/httpclient-win/src/main/java/org/apache/http/impl/auth/win/WindowsNegotiateScheme.java Mon Aug 18 07:39:26 2014
@@ -175,7 +175,7 @@ public class WindowsNegotiateScheme exte
response = getToken(null, null,
this.servicePrincipalName != null ? this.servicePrincipalName : username);
- } catch (Throwable t) {
+ } catch (Exception t) {
failAuthCleanup();
throw new AuthenticationException("Authentication Failed", t);
}
@@ -189,7 +189,7 @@ public class WindowsNegotiateScheme exte
Sspi.SECBUFFER_TOKEN, continueTokenBytes);
response = getToken(this.sppicontext, continueTokenBuffer,
this.servicePrincipalName != null ? this.servicePrincipalName : "localhost");
- } catch (Throwable t) {
+ } catch (Exception t) {
failAuthCleanup();
throw new AuthenticationException("Authentication Failed", t);
}