Saml2SecurityTokenHandler.ReadSigningKeyInfo Method (XmlReader, Saml2Assertion)

.NET Framework (current version)
 

Deserializes the SAML Signing KeyInfo.

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

protected virtual SecurityKeyIdentifier ReadSigningKeyInfo(
	XmlReader reader,
	Saml2Assertion assertion
)

Parameters

reader
Type: System.Xml.XmlReader

An XmlReader that can be positioned at a ds:KeyInfo element.

assertion
Type: System.IdentityModel.Tokens.Saml2Assertion

The assertion that is having the signature checked.

Return Value

Type: System.IdentityModel.Tokens.SecurityKeyIdentifier

The SecurityKeyIdentifier that represents the key to use to check the signature.

Exception Condition
ArgumentNullException

reader is null.

.NET Framework
Available since 4.5
Return to top
Show: