Class GraphClientCache

java.lang.Object
com.microsoft.jenkins.azuread.GraphClientCache

public class GraphClientCache extends Object
  • Constructor Details

    • GraphClientCache

      public GraphClientCache()
  • Method Details

    • getClient

      public static com.microsoft.graph.requests.GraphServiceClient<okhttp3.Request> getClient(AzureSecurityRealm azureSecurityRealm)
    • addProxyToHttpClientIfRequired

      public static okhttp3.OkHttpClient.Builder addProxyToHttpClientIfRequired(okhttp3.OkHttpClient.Builder builder, String targetUrl)
      Parameters:
      targetUrl - the full URL (including scheme) of the service the client will talk to, used to evaluate the proxy exclusion list