public class AuthenticationPolicy
extends com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy
| 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 |
|---|---|
String[] |
getScopes(com.azure.core.http.HttpPipelineCallContext context,
String[] scopes) |
authorizeRequest, authorizeRequestOnChallengeprocess, setAuthorizationHeaderpublic 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 emptyCopyright © 2021 Microsoft Corporation. All rights reserved.