SamlSerializer.LoadAdvice Method (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.

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

public virtual SamlAdvice LoadAdvice(
	XmlDictionaryReader reader,
	SecurityTokenSerializer keyInfoSerializer,
	SecurityTokenResolver outOfBandTokenResolver
)

Parameters

reader
Type: System.Xml.XmlDictionaryReader

An XmlDictionaryReader to read the additional information provided by the SAML authority.

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.SamlAdvice

A SamlAdvice that contains additional information provided by the SAML authority within a <saml:Advice> element of a SAML assertion.

Exception Condition
ArgumentNullException

reader is null

The <saml:Advice> element within a SAML assertion is an extension point for SAML tokens. To create a serializer that can read the custom attributes, derive a class from SamlSerializer and override the LoadAdvice(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver) method.

.NET Framework
Available since 3.0
Return to top
Show: