summaryrefslogtreecommitdiff
path: root/eaaf_core_utils
diff options
context:
space:
mode:
Diffstat (limited to 'eaaf_core_utils')
-rw-r--r--eaaf_core_utils/pom.xml5
-rw-r--r--eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/utils/X509Utils.java5
2 files changed, 2 insertions, 8 deletions
diff --git a/eaaf_core_utils/pom.xml b/eaaf_core_utils/pom.xml
index e0cb88e3..7b79211a 100644
--- a/eaaf_core_utils/pom.xml
+++ b/eaaf_core_utils/pom.xml
@@ -98,11 +98,6 @@
</dependency>
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<scope>test</scope>
diff --git a/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/utils/X509Utils.java b/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/utils/X509Utils.java
index e2fc4d1b..4d872ebe 100644
--- a/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/utils/X509Utils.java
+++ b/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/utils/X509Utils.java
@@ -1,12 +1,11 @@
package at.gv.egiz.eaaf.core.impl.utils;
import java.security.cert.X509Certificate;
+import java.util.Arrays;
import java.util.List;
import javax.security.auth.x500.X500Principal;
-import org.springframework.util.CollectionUtils;
-
public class X509Utils {
/**
@@ -17,7 +16,7 @@ public class X509Utils {
* @return sorted Certificate Chain
*/
public static List<X509Certificate> sortCertificates(X509Certificate[] certChain) {
- return sortCertificates(CollectionUtils.arrayToList(certChain));
+ return sortCertificates(Arrays.asList(certChain));
}