public class BearerTokenAuthenticationPolicy extends Object implements HttpPipelinePolicy
| Constructor and Description |
|---|
BearerTokenAuthenticationPolicy(TokenCredential credential,
String... scopes)
Creates BearerTokenAuthenticationPolicy.
|
| Modifier and Type | Method and Description |
|---|---|
Mono<HttpResponse> |
process(HttpPipelineCallContext context,
HttpPipelineNextPolicy next)
Processes provided request context and invokes the next policy.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPipelinePositionpublic BearerTokenAuthenticationPolicy(TokenCredential credential, String... scopes)
credential - the token credential to authenticate the requestscopes - the scopes of authentication the credential should get token forpublic Mono<HttpResponse> process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)
HttpPipelinePolicyprocess in interface HttpPipelinePolicycontext - The request context.next - The next policy to invoke.Copyright © 2021 Microsoft Corporation. All rights reserved.