Megosztás a következőn keresztül:


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, 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.ServiceBus.Primitives.TokenProvider CreateSharedAccessSignatureTokenProvider (string sharedAccessSignature);
static member CreateSharedAccessSignatureTokenProvider : string -> Microsoft.Azure.ServiceBus.Primitives.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

Remarks

GetTokenAsync(String, TimeSpan) parameters will not be used to manipulate target URL and token TTL.

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.ServiceBus.Primitives.TokenProvider CreateSharedAccessSignatureTokenProvider (string keyName, string sharedAccessKey);
static member CreateSharedAccessSignatureTokenProvider : string * string -> Microsoft.Azure.ServiceBus.Primitives.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

Remarks

Default token TTL is 1 hour and token scope is at entity level.

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.ServiceBus.Primitives.TokenProvider CreateSharedAccessSignatureTokenProvider (string keyName, string sharedAccessKey, Microsoft.Azure.ServiceBus.Primitives.TokenScope tokenScope);
static member CreateSharedAccessSignatureTokenProvider : string * string * Microsoft.Azure.ServiceBus.Primitives.TokenScope -> Microsoft.Azure.ServiceBus.Primitives.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 keyName and key

Remarks

Default token TTL is 1 hour.

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.ServiceBus.Primitives.TokenProvider CreateSharedAccessSignatureTokenProvider (string keyName, string sharedAccessKey, TimeSpan tokenTimeToLive);
static member CreateSharedAccessSignatureTokenProvider : string * string * TimeSpan -> Microsoft.Azure.ServiceBus.Primitives.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 keyName and key.

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.ServiceBus.Primitives.TokenProvider CreateSharedAccessSignatureTokenProvider (string keyName, string sharedAccessKey, TimeSpan tokenTimeToLive, Microsoft.Azure.ServiceBus.Primitives.TokenScope tokenScope);
static member CreateSharedAccessSignatureTokenProvider : string * string * TimeSpan * Microsoft.Azure.ServiceBus.Primitives.TokenScope -> Microsoft.Azure.ServiceBus.Primitives.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