SamlSerializer.LoadStatement Method (XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver)

 

Reads a SAML statement using the specified XML reader.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public virtual SamlStatement LoadStatement(
	XmlDictionaryReader reader,
	SecurityTokenSerializer keyInfoSerializer,
	SecurityTokenResolver outOfBandTokenResolver
)

Parameters

reader
Type: System.Xml.XmlDictionaryReader

An XmlDictionaryReader to read the SAML statement.

keyInfoSerializer
Type: System.IdentityModel.Selectors.SecurityTokenSerializer

A SecurityTokenSerializer that reads the KeyInfo clause of the digital signature.

outOfBandTokenResolver
Type: System.IdentityModel.Selectors.SecurityTokenResolver

A SecurityTokenResolver that determines the security token that created the digital signature.

Return Value

Type: System.IdentityModel.Tokens.SamlStatement

A SamlStatement that represents the SAML statement.

Exception Condition
ArgumentNullException

reader is null.

SamlSecurityToken security tokens specify their claims using SAML assertions where the details of the claims are specified in SAML statements. The SAML specification defines the following statement types:

The LoadStatement(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver) method reads the SAML statements listed previously. When custom statements are defined and used by an application, create a serializer to read the contents of them. To create the custom serializer, derive a class from SamlSerializer and override the LoadStatement(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver) method. Custom SAML statements are contained within a <saml:Statement> element.

.NET Framework
Available since 3.0
Return to top
Show: