語言

SecurityTokenService.GetSecurityTokenHandler(String) 方法

定義

取得適當的安全權杖處理器以發出指定類型的安全權杖。

protected:
 virtual System::IdentityModel::Tokens::SecurityTokenHandler ^ GetSecurityTokenHandler(System::String ^ requestedTokenType);
protected virtual System.IdentityModel.Tokens.SecurityTokenHandler GetSecurityTokenHandler(string requestedTokenType);
abstract member GetSecurityTokenHandler : string -> System.IdentityModel.Tokens.SecurityTokenHandler
override this.GetSecurityTokenHandler : string -> System.IdentityModel.Tokens.SecurityTokenHandler
Protected Overridable Function GetSecurityTokenHandler (requestedTokenType As String) As SecurityTokenHandler

參數

requestedTokenType
String

一個包含請求標記類型 URI 的字串。

傳回

A SecurityTokenHandler 代表用於建立已發行安全憑證的憑證處理器。 若不支援所請求的權杖類型(未設定該標記型態的處理器),則回傳 null 。

備註

在預設實作中,如果 requestedTokenType 是 null 或 是空字串,則使用設定中的預設權杖類型。 這是由 DefaultTokenType 透過該 SecurityTokenServiceConfiguration 屬性存取的 STS 設定物件的屬性所規定。

此方法可從該方法中 Issue 實作的預設代幣發行管線呼叫。

適用於

另請參閱