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.ArmChallengeAuthenticationPolicy
Rewrite the BearerTokenAuthenticationPolicy, it will use default scope when scopes parameter is empty.
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationPolicy(com.azure.core.credential.TokenCredential credential, com.azure.core.management.AzureEnvironment environment, String... scopes) Creates AuthenticationPolicy. -
Method Summary
Methods inherited from class com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy
authorizeRequest, authorizeRequestOnChallenge, authorizeRequestOnChallengeSync, authorizeRequestSyncMethods inherited from class com.azure.core.http.policy.BearerTokenAuthenticationPolicy
process, processSync, setAuthorizationHeader, setAuthorizationHeaderSyncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.core.http.policy.HttpPipelinePolicy
getPipelinePosition
-
Constructor Details
-
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
-
-
Method Details
-
getScopes
- Overrides:
getScopesin classcom.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy
-