Redigera

Dela via


SamlSerializer.LoadStatement Method

Definition

Reads a SAML statement using the specified XML reader.

public:
 virtual System::IdentityModel::Tokens::SamlStatement ^ LoadStatement(System::Xml::XmlDictionaryReader ^ reader, System::IdentityModel::Selectors::SecurityTokenSerializer ^ keyInfoSerializer, System::IdentityModel::Selectors::SecurityTokenResolver ^ outOfBandTokenResolver);
public virtual System.IdentityModel.Tokens.SamlStatement LoadStatement (System.Xml.XmlDictionaryReader reader, System.IdentityModel.Selectors.SecurityTokenSerializer keyInfoSerializer, System.IdentityModel.Selectors.SecurityTokenResolver outOfBandTokenResolver);
abstract member LoadStatement : System.Xml.XmlDictionaryReader * System.IdentityModel.Selectors.SecurityTokenSerializer * System.IdentityModel.Selectors.SecurityTokenResolver -> System.IdentityModel.Tokens.SamlStatement
override this.LoadStatement : System.Xml.XmlDictionaryReader * System.IdentityModel.Selectors.SecurityTokenSerializer * System.IdentityModel.Selectors.SecurityTokenResolver -> System.IdentityModel.Tokens.SamlStatement
Public Overridable Function LoadStatement (reader As XmlDictionaryReader, keyInfoSerializer As SecurityTokenSerializer, outOfBandTokenResolver As SecurityTokenResolver) As SamlStatement

Parameters

reader
XmlDictionaryReader

An XmlDictionaryReader to read the SAML statement.

keyInfoSerializer
SecurityTokenSerializer

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

outOfBandTokenResolver
SecurityTokenResolver

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

Returns

A SamlStatement that represents the SAML statement.

Exceptions

reader is null.

Examples

SamlAttributeStatement

SamlAuthenticationStatement

SamlAuthorizationDecisionStatement

SamlSubjectStatement

SamlStatement

Remarks

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.

Applies to