Class BearerTokenAuthenticationChallengePolicy

  • All Implemented Interfaces:

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

      • BearerTokenAuthenticationChallengePolicy

        public BearerTokenAuthenticationChallengePolicy​(TokenCredential credential,
                                                        String... scopes)
        Creates BearerTokenAuthenticationChallengePolicy.
        credential - the token credential to authenticate the request
        scopes - the scopes required for the token