StorageSharedKeyCredentialPolicy Class
- java.
lang. Object - com.
azure. storage. common. policy. StorageSharedKeyCredentialPolicy
- com.
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 Shared |
Method Summary
Modifier and Type | Method and Description |
---|---|
Mono<Http |
process(HttpPipelineCallContext context, HttpPipelineNextPolicy next) |
Http |
processSync(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) |
Storage |
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:
Method Details
process
public Mono
Parameters:
processSync
public HttpResponse processSync(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next)
Parameters:
sharedKeyCredential
public StorageSharedKeyCredential sharedKeyCredential()
Gets the StorageSharedKeyCredential linked to the policy.
Returns:
Applies to
Azure SDK for Java