Bewerken

Delen via


SamlSerializer Class

Definition

Serializes and deserializes SamlSecurityToken objects into and from XML documents.

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

Remarks

XML serialization is the process of converting an object's public properties and fields to a serial format (in this case, XML) for storage or transport. Deserialization re-creates the object in its original state from the XML.

The SamlSerializer class serializes and deserializes SAML security tokens, which have an extensible format. Unlike many other security tokens, SamlSecurityToken security tokens include XML elements and attributes that can be customized for an application's needs. Some of the extensibility points for a SAML assertion include the <saml:Advice>, <saml:Condition>, and <saml:Statement> elements. For more details about overriding how each of these elements are read, see the LoadAdvice(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver), LoadCondition(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver), and LoadStatement(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver) methods.

Constructors

SamlSerializer()

Initializes a new instance of the SamlSerializer class.

Methods

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)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
LoadAdvice(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver)

Reads the additional information provided by the SAML authority within a <saml:Advice> element of a SAML assertion using the specified XML reader.

LoadAssertion(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver)

Reads a SAML assertion from the specified XML reader.

LoadAttribute(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver)

Reads an attribute of the subject of a SAML security token using the specified XML reader.

LoadCondition(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver)

Reads a condition that must be taken into account when assessing the validity of a SAML assertion using the specified XML reader.

LoadConditions(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver)

Reads a set of conditions that must be taken into account when assessing the validity of a SAML assertion using the specified XML reader.

LoadStatement(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver)

Reads a SAML statement using the specified XML reader.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
PopulateDictionary(IXmlDictionary)

Replaces the default set of XML elements and attributes that are recognized by this serializer with the specified dictionary of elements and attributes.

ReadToken(XmlReader, SecurityTokenSerializer, SecurityTokenResolver)

Reads a SAML security token from the specified XML reader.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
WriteToken(SamlSecurityToken, XmlWriter, SecurityTokenSerializer)

Writes the specified SAML security token into the specified XML serializer.

Applies to

See also