Package com.azure.data.tables
Class TableAzureNamedKeyCredentialPolicy
java.lang.Object
com.azure.data.tables.TableAzureNamedKeyCredentialPolicy
- All Implemented Interfaces:
HttpPipelinePolicy
Policy that adds the SharedKey into the request's Authorization header.
-
Constructor Summary
ConstructorDescriptionCreates a SharedKey pipeline policy that adds the SharedKey into the request's authorization header. -
Method Summary
Modifier and TypeMethodDescriptionGet theAzureNamedKeyCredential
linked to the policy.process
(HttpPipelineCallContext context, HttpPipelineNextPolicy next) Authorizes aHttpRequest
with the SharedKey credential.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.core.http.policy.HttpPipelinePolicy
getPipelinePosition, processSync
-
Constructor Details
-
TableAzureNamedKeyCredentialPolicy
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
Authorizes aHttpRequest
with the SharedKey credential.- Specified by:
process
in interfaceHttpPipelinePolicy
- Parameters:
context
- The context of the request.next
- The next policy in the pipeline.- Returns:
- A reactive result containing the HTTP response.
-
getCredential
Get theAzureNamedKeyCredential
linked to the policy.- Returns:
- The
AzureNamedKeyCredential
.
-