Redigera

Dela via


SamlSerializer.LoadAssertion Method

Definition

Reads a SAML assertion from the specified XML reader.

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

Parameters

reader
XmlDictionaryReader

An XmlDictionaryReader to read the SAML assertion.

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 SamlAssertion that represents the SAML assertion.

Exceptions

reader is null

Remarks

A SAML assertion is contained within a <saml:Assertion> element.

The ReadToken(XmlReader, SecurityTokenSerializer, SecurityTokenResolver) method calls the LoadAssertion(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver) method to read the SAML assertion.

Applies to

See also