@@ -589,6 +589,7 @@ private static void setProperties(Properties props) {
589589 propsMapping .put ("jdk.tls.legacyAlgorithms" , restricts .jdkTlsLegacyAlgorithms );
590590 propsMapping .put ("jdk.certpath.disabledAlgorithms" , restricts .jdkCertpathDisabledAlgorithms );
591591 propsMapping .put ("jdk.security.legacyAlgorithms" , restricts .jdkSecurityLegacyAlgorithms );
592+ propsMapping .put ("securerandom.strongAlgorithms" , restricts .jdkSecureRandomStrongAlgorithms );
592593
593594 if (restricts .descIsFIPS ) {
594595 if (restricts .jdkFipsMode == null ) {
@@ -783,6 +784,7 @@ private static final class RestrictedSecurityProperties {
783784 // For SecureRandom.
784785 final String jdkSecureRandomProvider ;
785786 final String jdkSecureRandomAlgorithm ;
787+ private final String jdkSecureRandomStrongAlgorithms ;
786788
787789 final String jdkFipsMode ;
788790
@@ -817,6 +819,7 @@ private RestrictedSecurityProperties(String profileID, ProfileParser parser) {
817819 // For SecureRandom.
818820 this .jdkSecureRandomProvider = parser .getProperty ("jdkSecureRandomProvider" );
819821 this .jdkSecureRandomAlgorithm = parser .getProperty ("jdkSecureRandomAlgorithm" );
822+ this .jdkSecureRandomStrongAlgorithms = parser .getProperty ("jdkSecureRandomStrongAlgorithms" );
820823
821824 this .jdkFipsMode = parser .getProperty ("jdkFipsMode" );
822825
@@ -1111,6 +1114,7 @@ private void listUsedProfile() {
11111114 printProperty (profileID + ".javax.net.ssl.keyStore: " , keyStore );
11121115 printProperty (profileID + ".securerandom.provider: " , jdkSecureRandomProvider );
11131116 printProperty (profileID + ".securerandom.algorithm: " , jdkSecureRandomAlgorithm );
1117+ printProperty (profileID + ".securerandom.strongAlgorithms: " , jdkSecureRandomStrongAlgorithms );
11141118 System .out .println ();
11151119 }
11161120
@@ -1514,6 +1518,9 @@ private String getExistingValue(String property) {
15141518 case "jdkTlsLegacyAlgorithms" :
15151519 propertyKey = "jdk.tls.legacyAlgorithms" ;
15161520 break ;
1521+ case "jdkSecureRandomStrongAlgorithms" :
1522+ propertyKey = "securerandom.strongAlgorithms" ;
1523+ break ;
15171524 default :
15181525 return null ;
15191526 }
@@ -1567,6 +1574,8 @@ private void loadProperties(String profileID, List<String> allInfo) {
15671574 profileID + ".securerandom.provider" , allInfo );
15681575 setProperty ("jdkSecureRandomAlgorithm" ,
15691576 profileID + ".securerandom.algorithm" , allInfo );
1577+ setProperty ("jdkSecureRandomStrongAlgorithms" ,
1578+ profileID + ".securerandom.strongAlgorithms" , allInfo );
15701579 setProperty ("jdkFipsMode" ,
15711580 profileID + ".fips.mode" , allInfo );
15721581
@@ -1912,6 +1921,7 @@ private static boolean isPropertyAppendable(String property) {
19121921 case "jdkTlsDisabledAlgorithms" :
19131922 case "jdkTlsDisabledNamedCurves" :
19141923 case "jdkTlsLegacyAlgorithms" :
1924+ case "jdkSecureRandomStrongAlgorithms" :
19151925 return true ;
19161926 default :
19171927 return false ;
0 commit comments