|  | Sign in
Expand
This topic has not yet been rated Rate this topic

TokenProvider Class

Represents a security token provider with built-in factory methods returning some well-known token providers.

Namespace:  Microsoft.ServiceBus
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
public abstract class TokenProvider

The TokenProvider type exposes the following members.

  Name Description
Protected method TokenProvider Initializes a new instance of the TokenProvider class.
Top
  Name Description
Public property CacheTokens Gets or sets a value that indicates whether new security tokens are being cached.
Public property IsWebTokenSupported Gets or sets a value that indicates whether web token is supported by this provider.
Top
  Name Description
Public method BeginGetToken Begins an asynchronous operation to get a security token.
Public method BeginGetWebToken Begins an asynchronous operation to get a web token.
Public method Static member CreateSamlTokenProvider(String) Creates a Saml token provider with the specified Saml token.
Public method Static member CreateSamlTokenProvider(String, Uri) Creates a Saml token provider with the specified Saml token and URI of the Security Token Service (STS).
Public method Static member CreateSharedSecretTokenProvider(String, Byte()) Creates a shared secret token provider.
Public method Static member CreateSharedSecretTokenProvider(String, String) Creates a shared secret token provider.
Public method Static member CreateSharedSecretTokenProvider(String, Byte(), Uri) Creates a shared secret token provider.
Public method Static member CreateSharedSecretTokenProvider(String, String, Uri) Creates a shared secret token provider.
Public method Static member CreateSimpleWebTokenProvider(String) Creates a simple web token provider.
Public method Static member CreateSimpleWebTokenProvider(String, Uri) Creates a simple web token provider.
Public method EndGetToken Completes an asynchronous operation to get a security token.
Public method EndGetWebToken Completes an asynchronous operation to get a web token.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnBeginGetToken Executes upon calling the BeginGetToken method.
Protected method OnBeginGetWebToken Executes upon calling the BeginGetWebToken method.
Protected method OnEndGetToken Executes upon calling the EndGetToken method.
Protected method OnEndGetWebToken Executes upon calling the EndGetWebToken method.
Public method ToString (Inherited from Object.)
Top

The token provider is responsible for the acquisition of tokens and would, in the concrete case of a token provider for shared secrets in a specialization, also hold that secret.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)