共用方式為


WSTrustChannel.GetTokenFromResponse 方法

定義

從 RSTR 取得安全性權杖。

public:
 virtual System::IdentityModel::Tokens::SecurityToken ^ GetTokenFromResponse(System::IdentityModel::Protocols::WSTrust::RequestSecurityToken ^ request, System::IdentityModel::Protocols::WSTrust::RequestSecurityTokenResponse ^ response);
public virtual System.IdentityModel.Tokens.SecurityToken GetTokenFromResponse (System.IdentityModel.Protocols.WSTrust.RequestSecurityToken request, System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse response);
abstract member GetTokenFromResponse : System.IdentityModel.Protocols.WSTrust.RequestSecurityToken * System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse -> System.IdentityModel.Tokens.SecurityToken
override this.GetTokenFromResponse : System.IdentityModel.Protocols.WSTrust.RequestSecurityToken * System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse -> System.IdentityModel.Tokens.SecurityToken
Public Overridable Function GetTokenFromResponse (request As RequestSecurityToken, response As RequestSecurityTokenResponse) As SecurityToken

參數

request
RequestSecurityToken

表示用來要求安全性權杖的要求的 RequestSecurityToken

response
RequestSecurityTokenResponse

RequestSecurityTokenResponse,表示包含安全性權杖的回應。

傳回

SecurityToken,表示剖析的安全性權杖。

例外狀況

responsenull

適用於