WSFederationSerializer.CreateResponse 方法

定义

将 WS-Federation Sign-In 请求消息对象转换为 RequestSecurityTokenResponse 对象。

public:
 virtual System::IdentityModel::Protocols::WSTrust::RequestSecurityTokenResponse ^ CreateResponse(System::IdentityModel::Services::FederationMessage ^ message, System::IdentityModel::Protocols::WSTrust::WSTrustSerializationContext ^ context);
public virtual System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse CreateResponse (System.IdentityModel.Services.FederationMessage message, System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext context);
abstract member CreateResponse : System.IdentityModel.Services.FederationMessage * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext -> System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse
override this.CreateResponse : System.IdentityModel.Services.FederationMessage * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext -> System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse
Public Overridable Function CreateResponse (message As FederationMessage, context As WSTrustSerializationContext) As RequestSecurityTokenResponse

参数

message
FederationMessage

要转换的消息。 这应该是 SignInResponseMessage 实例。

context
WSTrustSerializationContext

当前序列化上下文。

返回

表示转换的登录响应消息的 RequestSecurityTokenResponse 对象。

例外

messagenull

contextnull

消息不是类型 SignInResponseMessage

- 或 -

SignInResponseMessage 对象缺少用来构造一个有效的 RequestSecurityTokenResponse 对象的请求信息。

适用于