SamlSubject.Crypto 属性

定义

获取或设置加密密钥,该密钥用于验证由此 SAML 主题语句标识的数字签名。Gets or sets the cryptographic key that is used to verify the digital signature that is identified by this SAML subject statement.

public:
 property System::IdentityModel::Tokens::SecurityKey ^ Crypto { System::IdentityModel::Tokens::SecurityKey ^ get(); void set(System::IdentityModel::Tokens::SecurityKey ^ value); };
public System.IdentityModel.Tokens.SecurityKey Crypto { get; set; }
member this.Crypto : System.IdentityModel.Tokens.SecurityKey with get, set
Public Property Crypto As SecurityKey

属性值

SecurityKey

一个 SecurityKey,其中包含用于验证 SAML 安全令牌的数字签名的加密密钥。A SecurityKey that contains the cryptographic key that is used to verify the digital signature for a SAML security token.

注解

调用 SamlSubject 方法时,会使用在 SAML 安全令牌的数字签名的 <ds:KeyInfo> 元素中指定的加密密钥来设置 Crypto 属性。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.

<ds:KeyInfo> 元素的密钥标识符由 KeyIdentifier 属性表示。The key identifier for the <ds:KeyInfo> element is represented by the KeyIdentifier property.

适用于

另请参阅