Uses of Class
com.azure.core.credential.TokenRequestContext
Packages that use TokenRequestContext
Package
Description
Azure Core Credential library is designed to simplify the process of authenticating and authorizing access
to Azure services from Java applications.
This package contains the 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.TokenRequestContext.setCaeEnabled(boolean enableCae) Indicates whether to enable Continuous Access Evaluation (CAE) for the requested token.Set the additional claims to be included in the token.TokenRequestContext.setProofOfPossessionOptions(ProofOfPossessionOptions proofOfPossessionOptions) Sets the proof of possession options.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.BasicAuthenticationCredential.getTokenSync(TokenRequestContext request) 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