Serializes and deserializes SamlSecurityToken objects into and from XML documents.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
Thetype exposes the following members.
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (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||Reads the additional information provided by the SAML authority within a <saml:Advice> element of a SAML assertion using the specified XML reader.|
|LoadAssertion||Reads a SAML assertion from the specified XML reader.|
|LoadAttribute||Reads an attribute of the subject of a SAML security token using the specified XML reader.|
|LoadCondition||Reads a condition that must be taken into account when assessing the validity of a SAML assertion using the specified XML reader.|
|LoadConditions||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||Reads a SAML statement using the specified XML reader.|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|PopulateDictionary||Replaces the default set of XML elements and attributes that are recognized by this serializer with the specified dictionary of elements and attributes.|
|ReadToken||Reads a SAML security token from the specified XML reader.|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|WriteToken||Writes the specified SAML security token into the specified XML serializer.|
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 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.
Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.