你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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<HttpResponse> 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