changeset 14470:7a7302919f69

8266929: Unable to use algorithms from 3p providers Summary: Delay initializtion of AID cache table until after jar verification Reviewed-by: phh
author sgehwolf
date Wed, 19 May 2021 12:10:41 +0200
parents 72e77abe6d85
children 68d30424a687
files src/share/classes/sun/security/x509/AlgorithmId.java
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/x509/AlgorithmId.java	Mon Jan 22 08:00:43 2018 -0800
+++ b/src/share/classes/sun/security/x509/AlgorithmId.java	Wed May 19 12:10:41 2021 +0200
@@ -589,6 +589,15 @@
             || name.equalsIgnoreCase("SHA1/RSA")) {
             return AlgorithmId.sha1WithRSAEncryption_oid;
         }
+        if (name.equalsIgnoreCase("SHA256WithRSA")) {
+            return AlgorithmId.sha256WithRSAEncryption_oid;
+        }
+        if (name.equalsIgnoreCase("SHA384WithRSA")) {
+            return AlgorithmId.sha384WithRSAEncryption_oid;
+        }
+        if (name.equalsIgnoreCase("SHA512WithRSA")) {
+            return AlgorithmId.sha512WithRSAEncryption_oid;
+        }
         if (name.equalsIgnoreCase("SHA1withECDSA")
                 || name.equalsIgnoreCase("ECDSA")) {
             return AlgorithmId.sha1WithECDSA_oid;