Uses of Class
com.azure.core.credential.TokenRequestContext
Packages that use TokenRequestContext
Package
Description
Package containing basic credential classes for authentication purposes.
Package containing HttpPipelinePolicy interface and its implementations.
-
Uses of TokenRequestContext in com.azure.core.credential
Methods in com.azure.core.credential that return TokenRequestContextModifier and TypeMethodDescriptionAdds one or more scopes to the request scopes.Set the additional claims to be included in the token.Sets the scopes required for the token.TokenRequestContext.setTenantId(String tenantId) Set the tenant id to be used for the authentication request.Methods in com.azure.core.credential with parameters of type TokenRequestContextModifier and TypeMethodDescriptionBasicAuthenticationCredential.getToken(TokenRequestContext request) TokenCredential.getToken(TokenRequestContext request) Asynchronously get a token for a given resource/audience.default AccessTokenTokenCredential.getTokenSync(TokenRequestContext request) Synchronously get a token for a given resource/audience. -
Uses of TokenRequestContext in com.azure.core.http.policy
Methods in com.azure.core.http.policy with parameters of type TokenRequestContextModifier and TypeMethodDescriptionBearerTokenAuthenticationPolicy.setAuthorizationHeader(HttpPipelineCallContext context, TokenRequestContext tokenRequestContext) Authorizes the request with the bearer token acquired using the specifiedtokenRequestContextvoidBearerTokenAuthenticationPolicy.setAuthorizationHeaderSync(HttpPipelineCallContext context, TokenRequestContext tokenRequestContext) Authorizes the request with the bearer token acquired using the specifiedtokenRequestContext