private void protectProperties()

in runAs-agent/src/main/java/jetbrains/buildServer/runAs/agent/RunAsPropertiesExtension.java [98:112]


  private void protectProperties(final @NotNull AgentRunningBuild runningBuild) {
    myProfileParametersService.load();
    final Set<String> propertySets = myProfileParametersService.getProfiles();
    for (final String protectedPropertyName : OurProtectedParams) {
      // Properties
      for (String propertySet : propertySets) {
        final String propertyValue = myProfileParametersService.tryGetProperty(propertySet, protectedPropertyName);
        if (StringUtil.isEmptyOrSpaces(propertyValue)) {
          continue;
        }

        protectProperty(runningBuild, propertyValue);
      }
    }
  }