Saml2SecurityToken.SecurityKeys 属性

定义

获取与安全令牌相关联的加密密钥。Gets the cryptographic keys associated with the security token.

public:
 virtual property System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::Tokens::SecurityKey ^> ^ SecurityKeys { System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::Tokens::SecurityKey ^> ^ get(); };
public override System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Tokens.SecurityKey> SecurityKeys { get; }
member this.SecurityKeys : System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Tokens.SecurityKey>
Public Overrides ReadOnly Property SecurityKeys As ReadOnlyCollection(Of SecurityKey)

属性值

ReadOnlyCollection<SecurityKey>

一个类型为 ReadOnlyCollection<T>SecurityKey,包含与安全令牌相关联的密钥集。A ReadOnlyCollection<T> of type SecurityKey that contains the set of keys associated with the security token.

注解

使用 SecurityKeys 属性可为此安全令牌设置加密密钥,以便保护 SOAP 消息。Use the SecurityKeys property to set the cryptographic keys for this security token to protect a SOAP message. 密钥可用于(但不限于)数字签名或加密 SOAP 消息。The keys can be used, among other things, to digitally sign or encrypt SOAP messages.

适用于