You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/02/12 15:41:16 UTC
[camel] branch master updated: CAMEL-16193 - Use SecureRandom
instead of Random - Camel-Apns
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new e81ace2 CAMEL-16193 - Use SecureRandom instead of Random - Camel-Apns
e81ace2 is described below
commit e81ace22a5a6c03da1c729b75ea4ce6c7bc40da9
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Feb 12 16:40:08 2021 +0100
CAMEL-16193 - Use SecureRandom instead of Random - Camel-Apns
---
.../src/test/java/org/apache/camel/component/apns/util/ApnsUtils.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-apns/src/test/java/org/apache/camel/component/apns/util/ApnsUtils.java b/components/camel-apns/src/test/java/org/apache/camel/component/apns/util/ApnsUtils.java
index 603a766..043b93b 100644
--- a/components/camel-apns/src/test/java/org/apache/camel/component/apns/util/ApnsUtils.java
+++ b/components/camel-apns/src/test/java/org/apache/camel/component/apns/util/ApnsUtils.java
@@ -21,12 +21,12 @@ import java.io.InputStream;
import java.security.GeneralSecurityException;
import java.security.Provider;
import java.security.Provider.Service;
+import java.security.SecureRandom;
import java.security.Security;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.util.LinkedList;
import java.util.List;
-import java.util.Random;
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManager;
@@ -45,7 +45,7 @@ import org.apache.camel.support.jsse.TrustManagersParameters;
public final class ApnsUtils {
- private static Random random = new Random();
+ private static SecureRandom random = new SecureRandom();
private ApnsUtils() {
}