Class AuthenticationPolicy
- java.lang.Object
-
- com.azure.core.http.policy.BearerTokenAuthenticationPolicy
-
- com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy
-
- com.azure.resourcemanager.resources.fluentcore.policy.AuthenticationPolicy
-
- All Implemented Interfaces:
com.azure.core.http.policy.HttpPipelinePolicy
public class AuthenticationPolicy extends com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicyRewrite the BearerTokenAuthenticationPolicy, it will use default scope when scopes parameter is empty.
-
-
Constructor Summary
Constructors Constructor Description AuthenticationPolicy(com.azure.core.credential.TokenCredential credential, com.azure.core.management.AzureEnvironment environment, String... scopes)Creates AuthenticationPolicy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getScopes(com.azure.core.http.HttpPipelineCallContext context, String[] scopes)-
Methods inherited from class com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy
authorizeRequest, authorizeRequestOnChallenge
-
Methods inherited from class com.azure.core.http.policy.BearerTokenAuthenticationPolicy
process, setAuthorizationHeader
-
-
-
-
Constructor Detail
-
AuthenticationPolicy
public AuthenticationPolicy(com.azure.core.credential.TokenCredential credential, com.azure.core.management.AzureEnvironment environment, String... scopes)Creates AuthenticationPolicy.- Parameters:
credential- the token credential to authenticate the requestenvironment- the environment with endpoints for authenticationscopes- the scopes used in credential, using default scopes when empty
-
-