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 Details

    • StorageBearerTokenChallengeAuthorizationPolicy

      public StorageBearerTokenChallengeAuthorizationPolicy(com.azure.core.credential.TokenCredential credential, String... scopes)
      Creates StorageBearerTokenChallengeAuthorizationPolicy.
      Parameters:
      credential - the token credential to authenticate the request
      scopes - the scopes used in credential, using default scopes when empty
  • Method Details

    • authorizeRequest

      public Mono<Void> authorizeRequest(com.azure.core.http.HttpPipelineCallContext context)
      Overrides:
      authorizeRequest in class com.azure.core.http.policy.BearerTokenAuthenticationPolicy
    • authorizeRequestSync

      public void authorizeRequestSync(com.azure.core.http.HttpPipelineCallContext context)
      Overrides:
      authorizeRequestSync in class com.azure.core.http.policy.BearerTokenAuthenticationPolicy
    • authorizeRequestOnChallenge

      public Mono<Boolean> authorizeRequestOnChallenge(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpResponse response)
      Overrides:
      authorizeRequestOnChallenge in class com.azure.core.http.policy.BearerTokenAuthenticationPolicy
    • authorizeRequestOnChallengeSync

      public boolean authorizeRequestOnChallengeSync(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpResponse response)
      Overrides:
      authorizeRequestOnChallengeSync in class com.azure.core.http.policy.BearerTokenAuthenticationPolicy