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

一个 SecurityToken,表示分析的安全令牌。

例外

responsenull

适用于