SslSecurityTokenParameters.HasAsymmetricKey 属性

定义

获取一个值,该值指示令牌是否具有非对称密钥。Gets a value that indicates whether the token has an asymmetric key.

protected public:
 virtual property bool HasAsymmetricKey { bool get(); };
protected internal override bool HasAsymmetricKey { get; }
member this.HasAsymmetricKey : bool
Protected Friend Overrides ReadOnly Property HasAsymmetricKey As Boolean

属性值

Boolean

如果该令牌具有非对称密钥,则为 true;否则为 falsetrue if the token has an asymmetric key; otherwise, false.

注解

此属性始终返回 falseThis property always returns false.

非对称密钥用于公钥加密,公钥加密使用两个密钥,即在数学上相关的一个公钥和一个私钥。Asymmetric keys are used in public-key cryptography, which uses two keys, a public key and a private key, which are related mathematically. 公钥可广泛分发,私钥则保密。The public key is distributed widely, but the private key is kept secret. 在公钥加密中,无需交换公共密钥。In public-key cryptography, there is no need to exchange a common key.

适用于