Converts a SignInResponseMessage to a RequestSecurityTokenResponse object.
Namespace: Microsoft.IdentityModel.Protocols.WSFederation
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As WSFederationSerializer
Dim message As WSFederationMessage
Dim context As WSTrustSerializationContext
Dim returnValue As RequestSecurityTokenResponse

returnValue = instance.CreateResponse(message, context)

Syntax

Visual Basic
Public Overridable Function CreateResponse ( _
		message As WSFederationMessage, _
		context As WSTrustSerializationContext _
) As RequestSecurityTokenResponse
C#
public virtual RequestSecurityTokenResponse CreateResponse (
		WSFederationMessage message,
		WSTrustSerializationContext context
)
C++
public:
virtual RequestSecurityTokenResponse^ CreateResponse (
		WSFederationMessage^ message, 
		WSTrustSerializationContext^ context
)
J#
public RequestSecurityTokenResponse CreateResponse (
		WSFederationMessage message, 
		WSTrustSerializationContext context
)
JScript
public function CreateResponse (
		message : WSFederationMessage, 
		context : WSTrustSerializationContext
) : RequestSecurityTokenResponse

Parameters

message

The SignInResponseMessage to convert.

context

The current Serialization context.

Return Value

Returns RequestSecurityTokenResponse.

Exceptions

Exception type Condition
ArgumentNullException

One of the parameters is null.

ArgumentException

The message is not of type SignInResponseMessage or the SignInResponseMessage is missing required information to construct a valid RequestSecurityTokenResponse.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also