From a747ddbae4342d4d844f8432d9a14799c2c015da Mon Sep 17 00:00:00 2001 From: "Lars K.W. Gohlke" Date: Mon, 31 Aug 2020 21:53:59 +0200 Subject: [PATCH] replaces strings to enable compile time checking --- .../java/org/asamk/signal/util/SecurityProvider.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/asamk/signal/util/SecurityProvider.java b/src/main/java/org/asamk/signal/util/SecurityProvider.java index 9177a781..043a7894 100644 --- a/src/main/java/org/asamk/signal/util/SecurityProvider.java +++ b/src/main/java/org/asamk/signal/util/SecurityProvider.java @@ -15,11 +15,11 @@ public class SecurityProvider extends Provider { put("SecureRandom.DEFAULT", DefaultRandom.class.getName()); // Workaround for BKS truststore - put("KeyStore.BKS", "org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi$Std"); - put("KeyStore.BKS-V1", "org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi$Version1"); - put("KeyStore.BouncyCastle", "org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi$BouncyCastleStore"); - put("KeyFactory.X.509", "org.bouncycastle.jcajce.provider.asymmetric.x509.KeyFactory"); - put("CertificateFactory.X.509", "org.bouncycastle.jcajce.provider.asymmetric.x509.CertificateFactory"); + put("KeyStore.BKS", org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi.Std.class.getCanonicalName()); + put("KeyStore.BKS-V1", org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi.Version1.class.getCanonicalName()); + put("KeyStore.BouncyCastle", org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi.BouncyCastleStore.class.getCanonicalName()); + put("KeyFactory.X.509", org.bouncycastle.jcajce.provider.asymmetric.x509.KeyFactory.class.getCanonicalName()); + put("CertificateFactory.X.509", org.bouncycastle.jcajce.provider.asymmetric.x509.CertificateFactory.class.getCanonicalName()); } public static class DefaultRandom extends SecureRandomSpi {