SecurityTokenHandlerCollection.CreateDefaultSecurityTokenHandlerCollection Method

Definition

Creates a system default collection of basic security token handlers, each of which has the system default configuration.

Overloads

CreateDefaultSecurityTokenHandlerCollection()

Creates a system default collection of basic security token handlers, each of which has the system default configuration. The token handlers in this collection must be configured with service specific data before they can be used.

CreateDefaultSecurityTokenHandlerCollection(SecurityTokenHandlerConfiguration)

Creates a system default collection of basic security token handlers and associates the specified configuration with the new collection. Each of the handlers has the system default configuration. The token handlers in this collection must be configured with service specific data before they can be used.

CreateDefaultSecurityTokenHandlerCollection()

Creates a system default collection of basic security token handlers, each of which has the system default configuration. The token handlers in this collection must be configured with service specific data before they can be used.

C#
public static System.IdentityModel.Tokens.SecurityTokenHandlerCollection CreateDefaultSecurityTokenHandlerCollection ();

Returns

A security token handler collection that contains the default, basic security token handlers.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

CreateDefaultSecurityTokenHandlerCollection(SecurityTokenHandlerConfiguration)

Creates a system default collection of basic security token handlers and associates the specified configuration with the new collection. Each of the handlers has the system default configuration. The token handlers in this collection must be configured with service specific data before they can be used.

C#
public static System.IdentityModel.Tokens.SecurityTokenHandlerCollection CreateDefaultSecurityTokenHandlerCollection (System.IdentityModel.Tokens.SecurityTokenHandlerConfiguration configuration);

Parameters

configuration
SecurityTokenHandlerConfiguration

The configuration to associate with the handler collection.

Returns

A security token handler collection that contains the default, basic security token handlers.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1