Uses of Class
com.azure.core.credential.TokenRequestContext
-
Packages that use TokenRequestContext Package Description com.azure.core.credential Package containing basic credential classes for authentication purposes.com.azure.core.http.policy Package containing HttpPipelinePolicy interface and its implementations. -
-
Uses of TokenRequestContext in com.azure.core.credential
Methods in com.azure.core.credential that return TokenRequestContext Modifier and Type Method Description TokenRequestContextTokenRequestContext. addScopes(String... scopes)Adds one or more scopes to the request scopes.TokenRequestContextTokenRequestContext. setClaims(String claims)Set the additional claims to be included in the token.TokenRequestContextTokenRequestContext. setScopes(List<String> scopes)Sets the scopes required for the token.TokenRequestContextTokenRequestContext. setTenantId(String tenantId)Set the tenant id to be used for the authentication request.Methods in com.azure.core.credential with parameters of type TokenRequestContext Modifier and Type Method Description Mono<AccessToken>BasicAuthenticationCredential. getToken(TokenRequestContext request)Mono<AccessToken>TokenCredential. getToken(TokenRequestContext request)Asynchronously 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 TokenRequestContext Modifier and Type Method Description Mono<Void>BearerTokenAuthenticationPolicy. setAuthorizationHeader(HttpPipelineCallContext context, TokenRequestContext tokenRequestContext)Authorizes the request with the bearer token acquired using the specifiedtokenRequestContext
-