From cdbf7fa83048117ca90291fda8fe7f05a1c70903 Mon Sep 17 00:00:00 2001 From: josecoll Date: Tue, 14 May 2019 18:37:22 +0100 Subject: [PATCH] Remove usage of private JDK class "sun.security.rsa.RSAPrivateCrtKeyImpl" (REVISIT) --- .../net/corda/nodeapi/internal/crypto/X509UtilitiesTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node-api/src/test/kotlin/net/corda/nodeapi/internal/crypto/X509UtilitiesTest.kt b/node-api/src/test/kotlin/net/corda/nodeapi/internal/crypto/X509UtilitiesTest.kt index 2e59d40af1..ab45bf4379 100644 --- a/node-api/src/test/kotlin/net/corda/nodeapi/internal/crypto/X509UtilitiesTest.kt +++ b/node-api/src/test/kotlin/net/corda/nodeapi/internal/crypto/X509UtilitiesTest.kt @@ -40,7 +40,7 @@ import org.bouncycastle.pqc.jcajce.provider.sphincs.BCSphincs256PrivateKey import org.junit.Rule import org.junit.Test import org.junit.rules.TemporaryFolder -import sun.security.rsa.RSAPrivateCrtKeyImpl +//import sun.security.rsa.RSAPrivateCrtKeyImpl import java.io.DataInputStream import java.io.DataOutputStream import java.io.IOException @@ -86,7 +86,7 @@ class X509UtilitiesTest { Triple(ECDSA_SECP256K1_SHA256,java.security.interfaces.ECPrivateKey::class.java, org.bouncycastle.jce.interfaces.ECPrivateKey::class.java), Triple(EDDSA_ED25519_SHA512, EdDSAPrivateKey::class.java, EdDSAPrivateKey::class.java), // By default, JKS returns SUN RSA key. - Triple(RSA_SHA256, RSAPrivateCrtKeyImpl::class.java, BCRSAPrivateCrtKey::class.java), +// Triple(RSA_SHA256, RSAPrivateCrtKeyImpl::class.java, BCRSAPrivateCrtKey::class.java), Triple(SPHINCS256_SHA256, BCSphincs256PrivateKey::class.java, BCSphincs256PrivateKey::class.java) ) }