Compartir vía


StorageSharedKeyCredentialPolicy Class

  • java.lang.Object
    • com.azure.storage.common.policy.StorageSharedKeyCredentialPolicy

Implements

public final class StorageSharedKeyCredentialPolicy
implements HttpPipelinePolicy

Policy that adds the SharedKey into the request's Authorization header.

Constructor Summary

Constructor Description
StorageSharedKeyCredentialPolicy(StorageSharedKeyCredential credential)

Creates a SharedKey pipeline policy that adds the SharedKey into the request's authorization header.

Method Summary

Modifier and Type Method and Description
Mono<HttpResponse> process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)
HttpResponse processSync(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next)
StorageSharedKeyCredential sharedKeyCredential()

Gets the StorageSharedKeyCredential linked to the policy.

Methods inherited from java.lang.Object

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

process

public Mono process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)

Parameters:

context
next

processSync

public HttpResponse processSync(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next)

Parameters:

context
next

sharedKeyCredential

public StorageSharedKeyCredential sharedKeyCredential()

Gets the StorageSharedKeyCredential linked to the policy.

Returns:

the StorageSharedKeyCredential linked to the policy.

Applies to