WSFederationSerializer Class

Definition

Provides methods to convert a WS-Federation message to RequestSecurityToken and RequestSecurityTokenResponse objects, which are WS-Trust protocol specific.

public ref class WSFederationSerializer
public class WSFederationSerializer
type WSFederationSerializer = class
Public Class WSFederationSerializer
Inheritance
WSFederationSerializer

Constructors

WSFederationSerializer()

Initializes a new instance of the WSFederationSerializer class.

WSFederationSerializer(WSTrustRequestSerializer, WSTrustResponseSerializer)

Initializes a new instance of the WSFederationSerializer class with the specified request and response serializers.

WSFederationSerializer(XmlDictionaryReader)

Initializes a new instance of the WSFederationSerializer class based on the namespace of the response XML.

Methods

CanReadRequest(String)

Checks whether the specified string is a wst:RequestSecurityToken message with a namespace that is recognized by the wrapped WSTrustRequestSerializer.

CanReadResponse(String)

Checks whether the specified string is a wst:RequestSecurityTokenResponse message with a namespace that is recognized by the wrapped WSTrustResponseSerializer.

CreateRequest(FederationMessage, WSTrustSerializationContext)

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

CreateResponse(FederationMessage, WSTrustSerializationContext)

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

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetReferencedRequest(String)

Gets the wreq string from a referenced URL.

GetReferencedResult(String)

Gets the wresult string from a referenced URL.

GetRequestAsString(RequestSecurityToken, WSTrustSerializationContext)

Serializes the specified RequestSecurityToken object into a string.

GetResponseAsString(RequestSecurityTokenResponse, WSTrustSerializationContext)

Serializes the specified RequestSecurityTokenResponse object into a string.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to