Muokkaa

Jaa


WSFederationSerializer.CreateResponse Method

Definition

Converts a WS-Federation Sign-In Response message object to a RequestSecurityTokenResponse object.

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

Parameters

message
FederationMessage

The message to convert. This should be an instance of SignInResponseMessage.

context
WSTrustSerializationContext

The current serialization context.

Returns

A RequestSecurityTokenResponse object that represents the converted Sign-In Response message.

Exceptions

message is null.

-or-

context is null.

The message is not of type SignInResponseMessage.

-or-

The SignInResponseMessage object is missing required information to construct a valid RequestSecurityTokenResponse object.

Applies to