src/java.base/share/classes/sun/security/ssl/SupportedGroupsExtension.java
changeset 51398 3c389a284345
parent 50768 68fa3d4026ea
child 51733 a929ad0569ee
child 56858 829e9b5ace08
equal deleted inserted replaced
51397:c9150700bbd0 51398:3c389a284345
   480             //
   480             //
   481             //      jdk.tls.namedGroups="secp521r1, secp256r1, ffdhe2048"
   481             //      jdk.tls.namedGroups="secp521r1, secp256r1, ffdhe2048"
   482             //
   482             //
   483             // If the System Property is not defined or the value is empty, the
   483             // If the System Property is not defined or the value is empty, the
   484             // default groups and preferences will be used.
   484             // default groups and preferences will be used.
   485             String property = AccessController.doPrivileged(
   485             String property = GetPropertyAction
   486                         new GetPropertyAction("jdk.tls.namedGroups"));
   486                     .privilegedGetProperty("jdk.tls.namedGroups");
   487             if (property != null && property.length() != 0) {
   487             if (property != null && property.length() != 0) {
   488                 // remove double quote marks from beginning/end of the property
   488                 // remove double quote marks from beginning/end of the property
   489                 if (property.length() > 1 && property.charAt(0) == '"' &&
   489                 if (property.length() > 1 && property.charAt(0) == '"' &&
   490                         property.charAt(property.length() - 1) == '"') {
   490                         property.charAt(property.length() - 1) == '"') {
   491                     property = property.substring(1, property.length() - 1);
   491                     property = property.substring(1, property.length() - 1);