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)
Process provided request context and invokes the next policy.
|
public 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 - request contextnext - The next policy to invoke.Copyright © 2019 Microsoft Corporation. All rights reserved.