Class BearerTokenAuthenticationChallengePolicy

java.lang.Object
com.azure.core.experimental.http.policy.BearerTokenAuthenticationChallengePolicy
All Implemented Interfaces:
HttpPipelinePolicy

public class BearerTokenAuthenticationChallengePolicy extends Object implements HttpPipelinePolicy
The pipeline policy that applies a token credential to an HTTP request with "Bearer" scheme.
  • Constructor Details

    • BearerTokenAuthenticationChallengePolicy

      public BearerTokenAuthenticationChallengePolicy(TokenCredential credential, String... scopes)
      Creates BearerTokenAuthenticationChallengePolicy.
      Parameters:
      credential - the token credential to authenticate the request
      scopes - the scopes required for the token
  • Method Details