jdk/src/java.base/share/classes/sun/security/ssl/ClientKeyExchangeService.java
changeset 37593 824750ada3d6
parent 35302 e4d2275861c3
child 37781 71ed5645f17c
equal deleted inserted replaced
37592:c80f098887f4 37593:824750ada3d6
    48     static class Loader {
    48     static class Loader {
    49         private static final Map<String,ClientKeyExchangeService>
    49         private static final Map<String,ClientKeyExchangeService>
    50                 providers = new HashMap<>();
    50                 providers = new HashMap<>();
    51 
    51 
    52         static {
    52         static {
    53             final String key = "java.home";
    53             String path = GetPropertyAction.getProperty("java.home");
    54             String path = AccessController.doPrivileged(
       
    55                     new GetPropertyAction(key), null,
       
    56                     new PropertyPermission(key, "read"));
       
    57             ServiceLoader<ClientKeyExchangeService> sc =
    54             ServiceLoader<ClientKeyExchangeService> sc =
    58                     AccessController.doPrivileged(
    55                     AccessController.doPrivileged(
    59                             (PrivilegedAction<ServiceLoader<ClientKeyExchangeService>>)
    56                             (PrivilegedAction<ServiceLoader<ClientKeyExchangeService>>)
    60                                     () -> ServiceLoader.loadInstalled(ClientKeyExchangeService.class),
    57                                     () -> ServiceLoader.loadInstalled(ClientKeyExchangeService.class),
    61                             null,
    58                             null,