Class ServiceBusSupplementaryAuthHeaderPolicy
java.lang.Object
com.azure.messaging.servicebus.administration.ServiceBusSupplementaryAuthHeaderPolicy
- All Implemented Interfaces:
com.azure.core.http.policy.HttpPipelinePolicy
public final class ServiceBusSupplementaryAuthHeaderPolicy
extends Object
implements com.azure.core.http.policy.HttpPipelinePolicy
Authentication policy to add necessary supplementary auth headers when forwarding is set.
-
Constructor Summary
ConstructorDescriptionServiceBusSupplementaryAuthHeaderPolicy
(com.azure.core.credential.TokenCredential tokenCredential) Creates an instance that adds necessary supplementary authentication headers. -
Method Summary
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
-
ServiceBusSupplementaryAuthHeaderPolicy
public ServiceBusSupplementaryAuthHeaderPolicy(com.azure.core.credential.TokenCredential tokenCredential) Creates an instance that adds necessary supplementary authentication headers.- Parameters:
tokenCredential
- Credential to get access token.
-
-
Method Details
-
process
public Mono<com.azure.core.http.HttpResponse> process(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpPipelineNextPolicy next) Add the additional authentication token needed for various types of forwarding options.- Specified by:
process
in interfacecom.azure.core.http.policy.HttpPipelinePolicy
- Parameters:
context
- HTTP request context.next
- The next HTTP policy in the pipeline.- Returns:
- A mono that completes with the HTTP response.
-