Export (0) Print
Expand All

SecurityTokenService.GetSecurityTokenHandler Method

.NET Framework 4.5

Gets the appropriate security token handler for issuing a security token of the specified type.

Namespace:  System.IdentityModel
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected virtual SecurityTokenHandler GetSecurityTokenHandler(
	string requestedTokenType
)

Parameters

requestedTokenType
Type: System.String

A string that contains the requested token type URI.

Return Value

Type: System.IdentityModel.Tokens.SecurityTokenHandler
A SecurityTokenHandler that represents the token handler to be used for creating the issued security token. Returns null if the requested token type is not supported (there is no handler configured for the specified token type).

In the default implementation if requestedTokenType is null or an empty string, the default token type from configuration is used. This is specified by the DefaultTokenType property of the STS configuration object accessed through the SecurityTokenServiceConfiguration property.

This method is called from the default token issuance pipeline implemented in the Issue method.

.NET Framework

Supported in: 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft