Bagikan melalui


SamlSerializer.LoadAssertion Metode

Definisi

Membaca pernyataan SAML dari pembaca XML yang ditentukan.

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

Parameter

reader
XmlDictionaryReader

Untuk XmlDictionaryReader membaca pernyataan SAML.

keyInfoSerializer
SecurityTokenSerializer

SecurityTokenSerializer yang membaca klausa KeyInfo tanda tangan digital.

outOfBandTokenResolver
SecurityTokenResolver

SecurityTokenResolver yang menentukan token keamanan yang membuat tanda tangan digital.

Mengembalikan

SamlAssertion yang mewakili pernyataan SAML.

Pengecualian

reader is null

Keterangan

Pernyataan SAML terkandung dalam <saml:Assertion> elemen .

Metode ini ReadToken(XmlReader, SecurityTokenSerializer, SecurityTokenResolver) memanggil LoadAssertion(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver) metode untuk membaca pernyataan SAML.

Berlaku untuk

Lihat juga