SecurityTokenService::GetSecurityTokenHandler Method (String^)
Gets the appropriate security token handler for issuing a security token of the specified type.
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.
Available since 4.5