TokenProvider Class

Definition

This abstract base class can be extended to implement additional token providers.

public abstract class TokenProvider
type TokenProvider = class
Public MustInherit Class TokenProvider
Inheritance
TokenProvider

Constructors

TokenProvider()

Initializes a new instance of the TokenProvider class.

Properties

ThisLock

Gets the synchronization object for the given instance.

Methods

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.

GetTokenAsync(String, TimeSpan)

Gets a SecurityToken for the given audience and duration.

OnGetTokenAsync(String, TimeSpan)

Implemented by derived TokenProvider types to generate their SecurityTokens.

Applies to