|
16 | 16 | import javax.net.ssl.TrustManagerFactory; |
17 | 17 | import javax.security.auth.x500.X500Principal; |
18 | 18 |
|
| 19 | +import junit.framework.TestCase; |
19 | 20 | import org.bouncycastle.asn1.x500.X500Name; |
20 | 21 | import org.bouncycastle.jsse.BCX509ExtendedKeyManager; |
21 | 22 | import org.bouncycastle.jsse.BCX509Key; |
22 | 23 |
|
23 | | -import junit.framework.TestCase; |
24 | | - |
25 | 24 | public class KeyManagerFactoryTest |
26 | 25 | extends TestCase |
27 | 26 | { |
@@ -58,6 +57,11 @@ public void testBasicRSA() |
58 | 57 | public void testRSAServer() |
59 | 58 | throws Exception |
60 | 59 | { |
| 60 | + // TLS_RSA is disabled in Java 25. |
| 61 | + if ("25".equals(System.getProperty("java.version"))) |
| 62 | + { |
| 63 | + return; |
| 64 | + } |
61 | 65 | KeyStore ks = getRsaKeyStore(true); |
62 | 66 |
|
63 | 67 | KeyStore trustStore = KeyStore.getInstance("JKS"); |
@@ -93,6 +97,11 @@ public void testRSAServer() |
93 | 97 | public void testRSAServerTrustEE() |
94 | 98 | throws Exception |
95 | 99 | { |
| 100 | + // TLS_RSA is disabled in Java 25. |
| 101 | + if ("25".equals(System.getProperty("java.version"))) |
| 102 | + { |
| 103 | + return; |
| 104 | + } |
96 | 105 | KeyStore ks = getRsaKeyStore(true); |
97 | 106 |
|
98 | 107 | KeyStore trustStore = KeyStore.getInstance("JKS"); |
@@ -138,6 +147,11 @@ public void testRSAServerTrustEE() |
138 | 147 | public void testRSAServerWithClientAuth() |
139 | 148 | throws Exception |
140 | 149 | { |
| 150 | + // TLS_RSA is disabled in Java 25. |
| 151 | + if ("25".equals(System.getProperty("java.version"))) |
| 152 | + { |
| 153 | + return; |
| 154 | + } |
141 | 155 | KeyStore clientKS = getRsaKeyStore(false); |
142 | 156 | KeyStore serverKS = getRsaKeyStore(true); |
143 | 157 |
|
|
0 commit comments