Uses of Class
com.azure.core.credential.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
Modifier 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.Modifier and TypeMethodDescriptionBasicAuthenticationCredential.getToken
(TokenRequestContext request) TokenCredential.getToken
(TokenRequestContext request) Asynchronously get a token for a given resource/audience.default AccessToken
TokenCredential.getTokenSync
(TokenRequestContext request) Synchronously get a token for a given resource/audience. -
Uses of TokenRequestContext in com.azure.core.http.policy
Modifier and TypeMethodDescriptionBearerTokenAuthenticationPolicy.setAuthorizationHeader
(HttpPipelineCallContext context, TokenRequestContext tokenRequestContext) Authorizes the request with the bearer token acquired using the specifiedtokenRequestContext
void
BearerTokenAuthenticationPolicy.setAuthorizationHeaderSync
(HttpPipelineCallContext context, TokenRequestContext tokenRequestContext) Authorizes the request with the bearer token acquired using the specifiedtokenRequestContext