public class BearerTokenAuthenticationPolicy extends Object implements HttpPipelinePolicy
| Constructor and Description |
|---|
BearerTokenAuthenticationPolicy(TokenCredential credential,
String... scopes)
Creates BearerTokenAuthenticationPolicy.
|
BearerTokenAuthenticationPolicy(TokenCredential credential,
String scope)
Creates BearerTokenAuthenticationPolicy.
|
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<HttpResponse> |
process(HttpPipelineCallContext context,
HttpPipelineNextPolicy next)
Process provided request context and invokes the next policy.
|
public BearerTokenAuthenticationPolicy(TokenCredential credential, String scope)
credential - the token credential to authenticate the requestscope - the scope of authentication the credential should get token forpublic BearerTokenAuthenticationPolicy(TokenCredential credential, String... scopes)
credential - the token credential to authenticate the requestscopes - the scopes of authentication the credential should get token forpublic reactor.core.publisher.Mono<HttpResponse> process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)
HttpPipelinePolicyprocess in interface HttpPipelinePolicycontext - request contextnext - the next policy to invokeCopyright © 2019 Microsoft Corporation. All rights reserved.