Token​Provider Class

Definition

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

public abstract class TokenProvider
Inheritance
TokenProvider
Derived

Constructors

Token​Provider(​Boolean, ​Boolean)

Initializes a new instance of the TokenProvider class.

Token​Provider(​Boolean, ​Boolean, ​Token​Scope)

Initializes a new instance of the TokenProvider class.

Token​Provider(​Boolean, ​Boolean, ​Int32, ​Token​Scope)

Initializes a new instance of the TokenProvider class.

Properties

Cache​Size

Gets or sets the size of the cache.

Cache​Tokens

Gets or sets a value that indicates whether new security tokens are being cached.

Is​Web​Token​Supported

Gets or sets a value that indicates whether web token is supported by this provider.

Strip​Query​Parameters

Gets whether the token provider strips query parameters.

Token​Scope

Gets or sets the token scope associated with the provider.

Methods

Begin​Get​Token(​String, ​String, ​Boolean, ​Time​Span, ​Async​Callback, ​Object)

Begins an asynchronous operation to get a security token.

Begin​Get​Web​Token(​String, ​String, ​Boolean, ​Time​Span, ​Async​Callback, ​Object)

Begins an asynchronous operation to get a web token.

Build​Key(​String, ​String)

Generates a key for the token provider.

Clear()

Clears the token provider.

Create​OAuth​Token​Provider(​IEnumerable<​Uri>, ​Network​Credential)

Creates an OAuth (open standard for authorization) token provider.

Create​Saml​Token​Provider(​String, ​Uri, ​Int32, ​Token​Scope)

Creates a SAML token provider with the specified SAML token, URI of the Security Token Service (STS), cache size and token scope.

Create​Saml​Token​Provider(​String, ​Uri, ​Int32)

Creates a SAML token provider with the specified SAML token, URI of the Security Token Service (STS) and cache size.

Create​Saml​Token​Provider(​String, ​Uri, ​Token​Scope)

Creates a SAML token provider with the specified SAML token, URI of the Security Token Service (STS) and token scope.

Create​Saml​Token​Provider(​String, ​Uri)

Creates a SAML token provider with the specified SAML token and URI of the Security Token Service (STS).

Create​Saml​Token​Provider(​String, ​Token​Scope)

Creates a SAML token provider with the specified SAML token and scope.

Create​Saml​Token​Provider(​String)

Creates a SAML token provider with the specified SAML token.

Create​Shared​Access​Signature​Token​Provider(​String)

Creates a URL that grants access to the token provider with the specified shared access signature.

Create​Shared​Access​Signature​Token​Provider(​String, ​String)

Creates a URL that grants access to the token provider with the specified key name and shared access key.

Create​Shared​Access​Signature​Token​Provider(​String, ​String, ​Token​Scope)

Creates a URL that grants access to the token provider with the specified key name, shared access key and token scope.

Create​Shared​Access​Signature​Token​Provider(​String, ​String, ​Time​Span)

Creates a URL that grants access to the token provider with the specified key name, shared access key and token time to live.

Create​Shared​Access​Signature​Token​Provider(​String, ​String, ​Time​Span, ​Token​Scope)

Creates a URL that grants access to the token provider.

Create​Shared​Secret​Token​Provider(​String, ​String, ​Uri, ​Token​Scope)

Creates a shared secret token provider.

Create​Shared​Secret​Token​Provider(​String, ​Byte[], ​Uri, ​Token​Scope)

Creates a shared secret token provider.

Create​Shared​Secret​Token​Provider(​String, ​String, ​Uri)

Creates a shared secret token provider.

Create​Shared​Secret​Token​Provider(​String, ​String, ​Token​Scope)

Creates a shared secret token provider.

Create​Shared​Secret​Token​Provider(​String, ​Byte[], ​Token​Scope)

Creates a shared secret token provider.

Create​Shared​Secret​Token​Provider(​String, ​String)

Creates a shared secret token provider.

Create​Shared​Secret​Token​Provider(​String, ​Byte[])

Creates a shared secret token provider.

Create​Shared​Secret​Token​Provider(​String, ​Byte[], ​Uri)

Creates a shared secret token provider.

Create​Simple​Web​Token​Provider(​String)

Creates a simple web token provider.

Create​Simple​Web​Token​Provider(​String, ​Token​Scope)

Creates a simple web token provider.

Create​Simple​Web​Token​Provider(​String, ​Uri)

Creates a simple web token provider.

Create​Simple​Web​Token​Provider(​String, ​Uri, ​Token​Scope)

Creates a simple web token provider.

Create​Windows​Token​Provider(​IEnumerable<​Uri>)

Creates a windows token provider.

Create​Windows​Token​Provider(​IEnumerable<​Uri>, ​Network​Credential)

Creates a windows token provider.

End​Get​Token(​IAsync​Result)

Completes an asynchronous operation to get a security token.

End​Get​Web​Token(​IAsync​Result)

Completes an asynchronous operation to get a web token.

Get​Token​Async(​String, ​String, ​Boolean, ​Time​Span)

Asynchronously retrieves the token for the provider.

Get​Web​Token​Async(​String, ​String, ​Boolean, ​Time​Span)

Asynchronously retrieves the web token for the provider.

Normalize​Applies​To(​String)

Returns an object whose value is the same as the token provider.

On​Begin​Get​Token(​String, ​String, ​Time​Span, ​Async​Callback, ​Object)

Executes upon calling the BeginGetToken method.

On​Begin​Get​Web​Token(​String, ​String, ​Time​Span, ​Async​Callback, ​Object)

Executes upon calling the BeginGetWebToken method.

On​End​Get​Token(​IAsync​Result, ​Date​Time)

Executes upon calling the EndGetToken method.

On​End​Get​Web​Token(​IAsync​Result, ​Date​Time)

Executes upon calling the EndGetWebToken method.

Extension Methods

IsDefined(Object)

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

IsNull(Object)

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

IsPrimitive(Object)

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