Class AzureActiveDirectoryTokenProvider
- Namespace
- Microsoft.Azure.ServiceBus.Primitives
- Assembly
- Microsoft.Azure.ServiceBus.dll
Represents the Azure Active Directory token provider for the Service Bus.
public class AzureActiveDirectoryTokenProvider : TokenProvider, ITokenProvider
- Inheritance
-
AzureActiveDirectoryTokenProvider
- Implements
- Inherited Members
Methods
GetTokenAsync(string, TimeSpan)
Gets a SecurityToken for the given audience and duration.
public override Task<SecurityToken> GetTokenAsync(string appliesTo, TimeSpan timeout)
Parameters
appliesTo
stringThe URI which the access token applies to
timeout
TimeSpanThe time span that specifies the timeout value for the message that gets the security token