Muokkaa

Jaa


WSFederationSerializer.CreateRequest Method

Definition

Converts a WS-Federation Sign-In Request message to a RequestSecurityToken object that the security token service (the SecurityTokenService class) can consume.

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

Parameters

message
FederationMessage

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

context
WSTrustSerializationContext

The current serialization context.

Returns

A RequestSecurityToken object that represents the converted Sign-In Request message.

Exceptions

message is null.

-or-

context is null.

The message is not of type SignInRequestMessage.

-or-

The SignInRequestMessage object is missing required information to construct a valid RequestSecurityToken object.

Applies to