Class AzureIdentityAccessTokenProvider
java.lang.Object
com.microsoft.kiota.authentication.AzureIdentityAccessTokenProvider
com.microsoft.graph.core.authentication.AzureIdentityAccessTokenProvider
- All Implemented Interfaces:
com.microsoft.kiota.authentication.AccessTokenProvider
public class AzureIdentityAccessTokenProvider
extends com.microsoft.kiota.authentication.AzureIdentityAccessTokenProvider
AzureIdentityAccessTokenProvider wrapper from Kiota library with Microsoft Graph defaults.
-
Constructor Summary
ConstructorsConstructorDescriptionAzureIdentityAccessTokenProvider(com.azure.core.credential.TokenCredential tokenCredential) Creates a new instance of AzureIdentityAccessTokenProvider.AzureIdentityAccessTokenProvider(com.azure.core.credential.TokenCredential tokenCredential, String[] allowedHosts, com.microsoft.kiota.authentication.ObservabilityOptions observabilityOptions, boolean isCaeEnabled, String... scopes) Creates a new instance of AzureIdentityAccessTokenProvider.AzureIdentityAccessTokenProvider(com.azure.core.credential.TokenCredential tokenCredential, String[] allowedHosts, com.microsoft.kiota.authentication.ObservabilityOptions observabilityOptions, String... scopes) Creates a new instance of AzureIdentityAccessTokenProvider. -
Method Summary
Methods inherited from class com.microsoft.kiota.authentication.AzureIdentityAccessTokenProvider
getAllowedHostsValidator, getAuthorizationToken
-
Constructor Details
-
AzureIdentityAccessTokenProvider
public AzureIdentityAccessTokenProvider(@Nonnull com.azure.core.credential.TokenCredential tokenCredential) Creates a new instance of AzureIdentityAccessTokenProvider.- Parameters:
tokenCredential- The Azure.Identity.TokenCredential implementation to use.
-
AzureIdentityAccessTokenProvider
public AzureIdentityAccessTokenProvider(@Nonnull com.azure.core.credential.TokenCredential tokenCredential, @Nonnull String[] allowedHosts, @Nullable com.microsoft.kiota.authentication.ObservabilityOptions observabilityOptions, @Nonnull String... scopes) Creates a new instance of AzureIdentityAccessTokenProvider.- Parameters:
tokenCredential- The Azure.Identity.TokenCredential implementation to use.allowedHosts- The list of allowed hosts for which to request access tokens.observabilityOptions- The observability options to use.scopes- The scopes to request access tokens for.
-
AzureIdentityAccessTokenProvider
public AzureIdentityAccessTokenProvider(@Nonnull com.azure.core.credential.TokenCredential tokenCredential, @Nonnull String[] allowedHosts, @Nullable com.microsoft.kiota.authentication.ObservabilityOptions observabilityOptions, boolean isCaeEnabled, @Nonnull String... scopes) Creates a new instance of AzureIdentityAccessTokenProvider.- Parameters:
tokenCredential- The Azure.Identity.TokenCredential implementation to use.allowedHosts- The list of allowed hosts for which to request access tokens.observabilityOptions- The observability options to use.isCaeEnabled- Whether to enable Continuous Access Evaluation, defaults to true.scopes- The scopes to request access tokens for.
-