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