Επεξεργασία

Κοινή χρήση μέσω


SamlSerializer.LoadAdvice Method

Definition

Reads the additional information provided by the SAML authority within a <saml:Advice> element of a SAML assertion using the specified XML reader.

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

Parameters

reader
XmlDictionaryReader

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

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 SamlAdvice that contains additional information provided by the SAML authority within a <saml:Advice> element of a SAML assertion.

Exceptions

reader is null

Remarks

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.

Applies to

See also