Udostępnij za pośrednictwem


TokenProvider.CreateSharedAccessSignatureTokenProvider Method

Definition

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