Package com.azure.storage.common.policy
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 Summary
Constructors Constructor Description StorageSharedKeyCredentialPolicy(StorageSharedKeyCredential credential)
Creates a SharedKey pipeline policy that adds the SharedKey into the request's authorization header.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mono<com.azure.core.http.HttpResponse>
process(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpPipelineNextPolicy next)
StorageSharedKeyCredential
sharedKeyCredential()
-
-
-
Constructor Detail
-
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 Detail
-
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 interfacecom.azure.core.http.policy.HttpPipelinePolicy
-
-