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)
Construct a TokenProvider based on a sharedAccessSignature.
public static Microsoft.Azure.Relay.TokenProvider CreateSharedAccessSignatureTokenProvider (string sharedAccessSignature);
static member CreateSharedAccessSignatureTokenProvider : string -> Microsoft.Azure.Relay.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)
Construct a TokenProvider based on the provided Key Name and Shared Access Key.
public static Microsoft.Azure.Relay.TokenProvider CreateSharedAccessSignatureTokenProvider (string keyName, string sharedAccessKey);
static member CreateSharedAccessSignatureTokenProvider : string * string -> Microsoft.Azure.Relay.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
Azure SDK for .NET