ServiceBusSupplementaryAuthHeaderPolicy Class

  • java.lang.Object
    • com.azure.messaging.servicebus.administration.ServiceBusSupplementaryAuthHeaderPolicy

Implements

public final class ServiceBusSupplementaryAuthHeaderPolicy
implements HttpPipelinePolicy

Authentication policy to add necessary supplementary auth headers when forwarding is set.

Constructor Summary

Constructor Description
ServiceBusSupplementaryAuthHeaderPolicy(TokenCredential tokenCredential)

Creates an instance that adds necessary supplementary authentication headers.

Method Summary

Modifier and Type Method and Description
Mono<HttpResponse> process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)

Add the additional authentication token needed for various types of forwarding options.

Methods inherited from java.lang.Object

Constructor Details

ServiceBusSupplementaryAuthHeaderPolicy

public ServiceBusSupplementaryAuthHeaderPolicy(TokenCredential tokenCredential)

Creates an instance that adds necessary supplementary authentication headers.

Parameters:

tokenCredential - Credential to get access token.

Method Details

process

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

Add the additional authentication token needed for various types of forwarding options.

Parameters:

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

Returns:

A mono that completes with the HTTP response.

Applies to