Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2011-05-23 23:17:20 +0000
committerspingel2011-05-23 23:17:20 +0000
commit6e09047310b6697daa9af5b0776fd133eae5aaf5 (patch)
treea33bbe8bc410929e899ccbcbeb122b7245e32b52 /org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/util
parent0ac6a4ddb230533230ec21afa06125a67189d768 (diff)
downloadorg.eclipse.mylyn.tasks-6e09047310b6697daa9af5b0776fd133eae5aaf5.tar.gz
org.eclipse.mylyn.tasks-6e09047310b6697daa9af5b0776fd133eae5aaf5.tar.xz
org.eclipse.mylyn.tasks-6e09047310b6697daa9af5b0776fd133eae5aaf5.zip
RESOLVED - bug 295050: [api] request enhanced support of client-certificates
https://bugs.eclipse.org/bugs/show_bug.cgi?id=295050
Diffstat (limited to 'org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/util')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/util/TracHttpClientTransportFactory.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/util/TracHttpClientTransportFactory.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/util/TracHttpClientTransportFactory.java
index 74b67212b..84e08ebb0 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/util/TracHttpClientTransportFactory.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/util/TracHttpClientTransportFactory.java
@@ -40,7 +40,9 @@ import org.apache.xmlrpc.util.HttpUtil;
import org.apache.xmlrpc.util.XmlRpcIOException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.mylyn.commons.net.AbstractWebLocation;
+import org.eclipse.mylyn.commons.net.SslCertificateException;
import org.eclipse.mylyn.commons.net.WebUtil;
+import org.eclipse.mylyn.internal.trac.core.client.AbstractTracClient;
import org.xml.sax.SAXException;
/**
@@ -224,11 +226,12 @@ public class TracHttpClientTransportFactory implements XmlRpcTransportFactory {
} else {
throw new XmlRpcException("Unexpected exception: " + t.getMessage(), t); //$NON-NLS-1$
}
+ } catch (SslCertificateException e) {
+ throw new TracHttpException(AbstractTracClient.SC_CERT_AUTH_FAILED);
} catch (IOException e) {
throw new XmlRpcException("I/O error while communicating with HTTP server: " + e.getMessage(), e); //$NON-NLS-1$
}
}
-
}
public static class TracHttpException extends XmlRpcException {

Back to the top