public class AuthenticationPolicy extends Object implements com.azure.core.http.policy.HttpPipelinePolicy
| Constructor and Description |
|---|
AuthenticationPolicy(com.azure.core.credential.TokenCredential credential,
com.azure.core.management.AzureEnvironment environment,
String... scopes)
Creates AuthenticationPolicy.
|
| Modifier and Type | Method and Description |
|---|---|
Mono<com.azure.core.http.HttpResponse> |
process(com.azure.core.http.HttpPipelineCallContext context,
com.azure.core.http.HttpPipelineNextPolicy next) |
public AuthenticationPolicy(com.azure.core.credential.TokenCredential credential,
com.azure.core.management.AzureEnvironment environment,
String... scopes)
credential - the token credential to authenticate the requestenvironment - the environment with endpoints for authenticationscopes - the scopes used in credential, using default scopes when emptypublic Mono<com.azure.core.http.HttpResponse> process(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpPipelineNextPolicy next)
process in interface com.azure.core.http.policy.HttpPipelinePolicyCopyright © 2021 Microsoft Corporation. All rights reserved.