Drop SWT on Java 7 only on windows, Linux version is still broken

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1996 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2012-08-24 11:52:39 +00:00
parent 1890dcdbfd
commit 451fd0ac2a
1 changed files with 6 additions and 1 deletions

View File

@ -153,7 +153,12 @@ public final class DavGatewayHttpClientFacade {
public static void configureClient(HttpClient httpClient, String url) throws DavMailException {
setClientHost(httpClient, url);
if (!needNTLM) {
if (Settings.getBooleanProperty("davmail.enableKerberos", false)) {
AuthPolicy.registerAuthScheme("Negotiate", NegotiateScheme.class);
ArrayList<String> authPrefs = new ArrayList<String>();
authPrefs.add("Negotiate");
httpClient.getParams().setParameter(AuthPolicy.AUTH_SCHEME_PRIORITY, authPrefs);
} else if (!needNTLM) {
ArrayList<String> authPrefs = new ArrayList<String>();
authPrefs.add(AuthPolicy.DIGEST);
authPrefs.add(AuthPolicy.BASIC);