SamlSubject.Crypto Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the cryptographic key that is used to verify the digital signature that is identified by this SAML subject statement.

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

public SecurityKey Crypto { get; set; }

Property Value

Type: System.IdentityModel.Tokens.SecurityKey

A SecurityKey that contains the cryptographic key that is used to verify the digital signature for a SAML security token.

When the SamlSubject method is called, the cryptographic key specified in the <ds:KeyInfo> element of the digital signature for the SAML security token is used to set the Crypto property. This cryptographic key identifies the subject.

The key identifier for the <ds:KeyInfo> element is represented by the KeyIdentifier property.

.NET Framework
Available since 3.0
Return to top
Show: