summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui/src/main/java/at
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-01 08:30:38 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-01 08:30:38 +0000
commit99cc7141f302e16ec4a22e95e95015f74f09e894 (patch)
treea1e9c03c6fe7a35dbb6eb259d08e647876bd265c /trunk/pdf-over-gui/src/main/java/at
parentaec2d68d0e0682ec033de5efa185248bb61bd6b6 (diff)
downloadpdf-over-99cc7141f302e16ec4a22e95e95015f74f09e894.tar.gz
pdf-over-99cc7141f302e16ec4a22e95e95015f74f09e894.tar.bz2
pdf-over-99cc7141f302e16ec4a22e95e95015f74f09e894.zip
Avoid use of ArrayUtils
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12532 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/ASITTrustManager.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/ASITTrustManager.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/ASITTrustManager.java
index 6f557bc6..f4e6be70 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/ASITTrustManager.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/ASITTrustManager.java
@@ -20,13 +20,13 @@ import java.security.KeyStore;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
+import java.util.Arrays;
+
import javax.net.ssl.TrustManager;
import javax.net.ssl.TrustManagerFactory;
import javax.net.ssl.X509TrustManager;
-
import javax.xml.parsers.DocumentBuilderFactory;
-import org.apache.commons.lang.ArrayUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.w3c.dom.Document;
@@ -215,9 +215,11 @@ public class ASITTrustManager implements X509TrustManager {
X509Certificate[] default_certs = this.sunJSSEX509TrustManager.getAcceptedIssuers();
- X509Certificate[] atrust_cerst = this.atrustTrustManager.getAcceptedIssuers();
-
- return (X509Certificate[]) ArrayUtils.addAll(default_certs, atrust_cerst);
+ X509Certificate[] atrust_certs = this.atrustTrustManager.getAcceptedIssuers();
+
+ X509Certificate[] all_certs = Arrays.copyOf(default_certs, default_certs.length + atrust_certs.length);
+ System.arraycopy(atrust_certs, 0, all_certs, default_certs.length, atrust_certs.length);
+ return all_certs;
}
}