diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-07-24 14:58:29 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-07-24 14:58:29 +0000 |
commit | ace0e313c742fa8542ffbf1c8b119547ce40a69c (patch) | |
tree | ae50be867062631f2b41a7088ad1d13fae17a234 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/ATrustHandler.java | |
parent | d5047b55ca5fc5ad2b72ca376becd6944bf4efd7 (diff) | |
download | mocca-ace0e313c742fa8542ffbf1c8b119547ce40a69c.tar.gz mocca-ace0e313c742fa8542ffbf1c8b119547ce40a69c.tar.bz2 mocca-ace0e313c742fa8542ffbf1c8b119547ce40a69c.zip |
Move TrustedSocketFactory registration
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@471 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/ATrustHandler.java')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/ATrustHandler.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/ATrustHandler.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/ATrustHandler.java index 78153156..70502e64 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/ATrustHandler.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/ATrustHandler.java @@ -20,7 +20,6 @@ import java.io.IOException; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.methods.PostMethod; -import org.apache.commons.httpclient.protocol.Protocol; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; @@ -89,10 +88,8 @@ public class ATrustHandler extends MobileBKUHandler { @Override public String postCredentials() throws Exception { ATrustStatus status = getStatus(); - - Protocol.registerProtocol("https", //$NON-NLS-1$ - new Protocol("https", new TrustedSocketFactory(), 443)); //$NON-NLS-1$ - + + MobileBKUHelper.registerTrustedSocketFactory(); HttpClient client = MobileBKUHelper.getHttpClient(); PostMethod post = new PostMethod(status.getBaseURL() + "/identification.aspx?sid=" + status.getSessionID()); //$NON-NLS-1$ @@ -161,9 +158,7 @@ public class ATrustHandler extends MobileBKUHandler { public String postTAN() throws IOException { ATrustStatus status = getStatus(); - Protocol.registerProtocol("https", //$NON-NLS-1$ - new Protocol("https", new TrustedSocketFactory(), 443)); //$NON-NLS-1$ - + MobileBKUHelper.registerTrustedSocketFactory(); HttpClient client = MobileBKUHelper.getHttpClient(); PostMethod post = new PostMethod(status.getBaseURL() |