TokenProvider.CreateSharedAccessSignatureTokenProvider Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateSharedAccessSignatureTokenProvider(String) |
Construct a TokenProvider based on a sharedAccessSignature. |
CreateSharedAccessSignatureTokenProvider(String, String) |
Construct a TokenProvider based on the provided Key Name and Shared Access Key. |
CreateSharedAccessSignatureTokenProvider(String, String, TokenScope) |
Construct a TokenProvider based on the provided Key Name and Shared Access Key. |
CreateSharedAccessSignatureTokenProvider(String, String, TimeSpan) |
Construct a TokenProvider based on the provided Key Name and Shared Access Key. |
CreateSharedAccessSignatureTokenProvider(String, String, TimeSpan, TokenScope) |
Construct a TokenProvider based on the provided Key Name and Shared Access Key. |
CreateSharedAccessSignatureTokenProvider(String)
- Source:
- TokenProvider.cs
Construct a TokenProvider based on a sharedAccessSignature.
public static Microsoft.Azure.EventHubs.TokenProvider CreateSharedAccessSignatureTokenProvider (string sharedAccessSignature);
static member CreateSharedAccessSignatureTokenProvider : string -> Microsoft.Azure.EventHubs.TokenProvider
Public Shared Function CreateSharedAccessSignatureTokenProvider (sharedAccessSignature As String) As TokenProvider
Parameters
- sharedAccessSignature
- String
The shared access signature
Returns
A TokenProvider initialized with the shared access signature
Applies to
CreateSharedAccessSignatureTokenProvider(String, String)
- Source:
- TokenProvider.cs
Construct a TokenProvider based on the provided Key Name and Shared Access Key.
public static Microsoft.Azure.EventHubs.TokenProvider CreateSharedAccessSignatureTokenProvider (string keyName, string sharedAccessKey);
static member CreateSharedAccessSignatureTokenProvider : string * string -> Microsoft.Azure.EventHubs.TokenProvider
Public Shared Function CreateSharedAccessSignatureTokenProvider (keyName As String, sharedAccessKey As String) As TokenProvider
Parameters
- keyName
- String
The key name of the corresponding SharedAccessKeyAuthorizationRule.
- sharedAccessKey
- String
The key associated with the SharedAccessKeyAuthorizationRule
Returns
A TokenProvider initialized with the provided RuleId and Password
Applies to
CreateSharedAccessSignatureTokenProvider(String, String, TokenScope)
- Source:
- TokenProvider.cs
Construct a TokenProvider based on the provided Key Name and Shared Access Key.
public static Microsoft.Azure.EventHubs.TokenProvider CreateSharedAccessSignatureTokenProvider (string keyName, string sharedAccessKey, Microsoft.Azure.EventHubs.TokenScope tokenScope);
static member CreateSharedAccessSignatureTokenProvider : string * string * Microsoft.Azure.EventHubs.TokenScope -> Microsoft.Azure.EventHubs.TokenProvider
Public Shared Function CreateSharedAccessSignatureTokenProvider (keyName As String, sharedAccessKey As String, tokenScope As TokenScope) As TokenProvider
Parameters
- keyName
- String
The key name of the corresponding SharedAccessKeyAuthorizationRule.
- sharedAccessKey
- String
The key associated with the SharedAccessKeyAuthorizationRule
- tokenScope
- TokenScope
The tokenScope of tokens to request.
Returns
A TokenProvider initialized with the provided RuleId and Password
Applies to
CreateSharedAccessSignatureTokenProvider(String, String, TimeSpan)
- Source:
- TokenProvider.cs
Construct a TokenProvider based on the provided Key Name and Shared Access Key.
public static Microsoft.Azure.EventHubs.TokenProvider CreateSharedAccessSignatureTokenProvider (string keyName, string sharedAccessKey, TimeSpan tokenTimeToLive);
static member CreateSharedAccessSignatureTokenProvider : string * string * TimeSpan -> Microsoft.Azure.EventHubs.TokenProvider
Public Shared Function CreateSharedAccessSignatureTokenProvider (keyName As String, sharedAccessKey As String, tokenTimeToLive As TimeSpan) As TokenProvider
Parameters
- keyName
- String
The key name of the corresponding SharedAccessKeyAuthorizationRule.
- sharedAccessKey
- String
The key associated with the SharedAccessKeyAuthorizationRule
- tokenTimeToLive
- TimeSpan
The token time to live
Returns
A TokenProvider initialized with the provided RuleId and Password
Applies to
CreateSharedAccessSignatureTokenProvider(String, String, TimeSpan, TokenScope)
- Source:
- TokenProvider.cs
Construct a TokenProvider based on the provided Key Name and Shared Access Key.
public static Microsoft.Azure.EventHubs.TokenProvider CreateSharedAccessSignatureTokenProvider (string keyName, string sharedAccessKey, TimeSpan tokenTimeToLive, Microsoft.Azure.EventHubs.TokenScope tokenScope);
static member CreateSharedAccessSignatureTokenProvider : string * string * TimeSpan * Microsoft.Azure.EventHubs.TokenScope -> Microsoft.Azure.EventHubs.TokenProvider
Public Shared Function CreateSharedAccessSignatureTokenProvider (keyName As String, sharedAccessKey As String, tokenTimeToLive As TimeSpan, tokenScope As TokenScope) As TokenProvider
Parameters
- keyName
- String
The key name of the corresponding SharedAccessKeyAuthorizationRule.
- sharedAccessKey
- String
The key associated with the SharedAccessKeyAuthorizationRule
- tokenTimeToLive
- TimeSpan
The token time to live
- tokenScope
- TokenScope
The tokenScope of tokens to request.
Returns
A TokenProvider initialized with the provided RuleId and Password
Applies to
Azure SDK for .NET