Class StorageSharedKeyCredentialPolicy

java.lang.Object
com.azure.storage.common.policy.StorageSharedKeyCredentialPolicy
All Implemented Interfaces:
com.azure.core.http.policy.HttpPipelinePolicy

public final class StorageSharedKeyCredentialPolicy extends Object implements com.azure.core.http.policy.HttpPipelinePolicy
Policy that adds the SharedKey into the request's Authorization header.
  • Constructor Details

    • StorageSharedKeyCredentialPolicy

      public StorageSharedKeyCredentialPolicy(StorageSharedKeyCredential credential)
      Creates a SharedKey pipeline policy that adds the SharedKey into the request's authorization header.
      Parameters:
      credential - the SharedKey credential used to create the policy.
  • Method Details

    • sharedKeyCredential

      public StorageSharedKeyCredential sharedKeyCredential()
      Returns:
      the StorageSharedKeyCredential linked to the policy.
    • process

      public Mono<com.azure.core.http.HttpResponse> process(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpPipelineNextPolicy next)
      Specified by:
      process in interface com.azure.core.http.policy.HttpPipelinePolicy