다음을 통해 공유


TableAzureNamedKeyCredentialPolicy Class

  • java.lang.Object
    • com.azure.data.tables.TableAzureNamedKeyCredentialPolicy

Implements

public final class TableAzureNamedKeyCredentialPolicy
implements HttpPipelinePolicy

Policy that adds the SharedKey into the request's Authorization header.

Constructor Summary

Constructor Description
TableAzureNamedKeyCredentialPolicy(AzureNamedKeyCredential credential)

Creates a SharedKey pipeline policy that adds the SharedKey into the request's authorization header.

Method Summary

Modifier and Type Method and Description
AzureNamedKeyCredential getCredential()

Get the AzureNamedKeyCredential linked to the policy.

Mono<HttpResponse> process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)

Authorizes a HttpRequest with the SharedKey credential.

Methods inherited from java.lang.Object

Constructor Details

TableAzureNamedKeyCredentialPolicy

public TableAzureNamedKeyCredentialPolicy(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

getCredential

public AzureNamedKeyCredential getCredential()

Get the AzureNamedKeyCredential linked to the policy.

Returns:

process

public Mono process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)

Authorizes a HttpRequest with the SharedKey credential.

Parameters:

context - The context of the request.
next - The next policy in the pipeline.

Returns:

A reactive result containing the HTTP response.

Applies to