Package com.azure.data.tables
Class TableAzureNamedKeyCredentialPolicy
java.lang.Object
com.azure.data.tables.TableAzureNamedKeyCredentialPolicy
- All Implemented Interfaces:
com.azure.core.http.policy.HttpPipelinePolicy
public final class TableAzureNamedKeyCredentialPolicy
extends Object
implements com.azure.core.http.policy.HttpPipelinePolicy
Policy that adds the SharedKey into the request's Authorization header.
-
Constructor Summary
ConstructorsConstructorDescriptionTableAzureNamedKeyCredentialPolicy
(com.azure.core.credential.AzureNamedKeyCredential credential) Creates a SharedKey pipeline policy that adds the SharedKey into the request's authorization header. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.credential.AzureNamedKeyCredential
Get theAzureNamedKeyCredential
linked to the policy.Mono
<com.azure.core.http.HttpResponse> process
(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.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
public TableAzureNamedKeyCredentialPolicy(com.azure.core.credential.AzureNamedKeyCredential 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<com.azure.core.http.HttpResponse> process(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpPipelineNextPolicy next) Authorizes aHttpRequest
with the SharedKey credential.- Specified by:
process
in interfacecom.azure.core.http.policy.HttpPipelinePolicy
- Parameters:
context
- The context of the request.next
- The next policy in the pipeline.- Returns:
- A reactive result containing the HTTP response.
-
getCredential
public com.azure.core.credential.AzureNamedKeyCredential getCredential()Get theAzureNamedKeyCredential
linked to the policy.- Returns:
- The
AzureNamedKeyCredential
.
-