Saml2SecurityTokenHandler.WriteSigningKeyInfo Method (XmlWriter, SecurityKeyIdentifier)

.NET Framework (current version)
 

Writes the Signing <ds:KeyInfo> element using the specified XML writer.

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

protected virtual void WriteSigningKeyInfo(
	XmlWriter writer,
	SecurityKeyIdentifier data
)

Parameters

writer
Type: System.Xml.XmlWriter

The XmlWriter with which to serialize the key identifier.

data
Type: System.IdentityModel.Tokens.SecurityKeyIdentifier

The SecurityKeyIdentifier that represents the key identifier to write.

Exception Condition
ArgumentNullException

signingKeyIdentifier is null.

-or-

writer is null.

InvalidOperationException

The handler cannot serialize the key identifier specified by signingKeyIdentifier.

.NET Framework
Available since 4.5
Return to top
Show: