Package com.microsoft.jenkins.azuread
Class GraphClientCache
java.lang.Object
com.microsoft.jenkins.azuread.GraphClientCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic okhttp3.OkHttpClient.BuilderaddProxyToHttpClientIfRequired(okhttp3.OkHttpClient.Builder builder, String targetUrl) static io.jenkins.plugins.microsoftgraph.GraphServiceClientgetClient(AzureSecurityRealm azureSecurityRealm) static StringgetWorkloadIdentityToken(String federatedCredentialsId)
-
Constructor Details
-
GraphClientCache
public GraphClientCache()
-
-
Method Details
-
getWorkloadIdentityToken
-
getClient
public static io.jenkins.plugins.microsoftgraph.GraphServiceClient 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
-