Package com.azure.storage.common.policy
Class StorageBearerTokenChallengeAuthorizationPolicy
java.lang.Object
com.azure.core.http.policy.BearerTokenAuthenticationPolicy
com.azure.storage.common.policy.StorageBearerTokenChallengeAuthorizationPolicy
- All Implemented Interfaces:
com.azure.core.http.policy.HttpPipelinePolicy
public class StorageBearerTokenChallengeAuthorizationPolicy
extends com.azure.core.http.policy.BearerTokenAuthenticationPolicy
The storage authorization policy which supports challenge.
-
Constructor Summary
ConstructorsConstructorDescriptionStorageBearerTokenChallengeAuthorizationPolicy(com.azure.core.credential.TokenCredential credential, String... scopes) Creates StorageBearerTokenChallengeAuthorizationPolicy. -
Method Summary
Modifier and TypeMethodDescriptionauthorizeRequest(com.azure.core.http.HttpPipelineCallContext context) authorizeRequestOnChallenge(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpResponse response) booleanauthorizeRequestOnChallengeSync(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpResponse response) voidauthorizeRequestSync(com.azure.core.http.HttpPipelineCallContext context) Methods 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
-
StorageBearerTokenChallengeAuthorizationPolicy
public StorageBearerTokenChallengeAuthorizationPolicy(com.azure.core.credential.TokenCredential credential, String... scopes) Creates StorageBearerTokenChallengeAuthorizationPolicy.- Parameters:
credential- the token credential to authenticate the requestscopes- the scopes used in credential, using default scopes when empty
-
-
Method Details
-
authorizeRequest
- Overrides:
authorizeRequestin classcom.azure.core.http.policy.BearerTokenAuthenticationPolicy
-
authorizeRequestSync
public void authorizeRequestSync(com.azure.core.http.HttpPipelineCallContext context) - Overrides:
authorizeRequestSyncin classcom.azure.core.http.policy.BearerTokenAuthenticationPolicy
-
authorizeRequestOnChallenge
public Mono<Boolean> authorizeRequestOnChallenge(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpResponse response) - Overrides:
authorizeRequestOnChallengein classcom.azure.core.http.policy.BearerTokenAuthenticationPolicy
-
authorizeRequestOnChallengeSync
public boolean authorizeRequestOnChallengeSync(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpResponse response) - Overrides:
authorizeRequestOnChallengeSyncin classcom.azure.core.http.policy.BearerTokenAuthenticationPolicy
-