AsymmetricSecurityKey 类
定义
非对称密钥的基类。Base class for asymmetric keys.
public ref class AsymmetricSecurityKey abstract : System::IdentityModel::Tokens::SecurityKey
public abstract class AsymmetricSecurityKey : System.IdentityModel.Tokens.SecurityKey
type AsymmetricSecurityKey = class
inherit SecurityKey
Public MustInherit Class AsymmetricSecurityKey
Inherits SecurityKey
- 继承
- 派生
注解
当 Windows Communication Foundation 在部分信任环境下运行时,不能使用此类。You cannot use this class when Windows Communication Foundation is running under partial trust.
构造函数
| AsymmetricSecurityKey() |
初始化 AsymmetricSecurityKey 类的新实例。Initializes a new instance of the AsymmetricSecurityKey class. |
属性
| KeySize |
在派生类中重写时,获取密钥的大小(以位为单位)。When overridden in a derived class, gets the size, in bits, of the key. (继承自 SecurityKey) |
方法
| DecryptKey(String, Byte[]) |
在派生类中重写时,解密指定的加密密钥。When overridden in a derived class, decrypts the specified encrypted key. (继承自 SecurityKey) |
| EncryptKey(String, Byte[]) |
在派生类中重写时,加密指定的密钥。When overridden in a derived class, encrypts the specified key. (继承自 SecurityKey) |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetAsymmetricAlgorithm(String, Boolean) |
在派生类中重写时,获取指定的非对称加密算法。When overridden in a derived class, gets the specified asymmetric cryptographic algorithm. |
| GetHashAlgorithmForSignature(String) |
在派生类中重写时,获取一个用于生成数字签名的哈希值的加密算法。When overridden in a derived class, gets a cryptographic algorithm that generates a hash for a digital signature. |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetSignatureDeformatter(String) |
在派生类中重写时,获取数字签名的反格式化程序算法。When overridden in a derived class, gets the deformatter algorithm for the digital signature. |
| GetSignatureFormatter(String) |
在派生类中重写时,获取数字签名的格式化程序算法。When overridden in a derived class, gets the formatter algorithm for the digital signature. |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| HasPrivateKey() |
在派生类中重写时,获取一个值,指示私钥是否可用。When overridden in a derived class, gets a value that indicates whether the private key is available. |
| IsAsymmetricAlgorithm(String) |
在派生类中重写时,获取一个值,该值指示指定的算法是否使用非对称密钥。When overridden in a derived class, gets a value that indicates whether the specified algorithm uses asymmetric keys. (继承自 SecurityKey) |
| IsSupportedAlgorithm(String) |
在派生类中重写时,获取一个指示此类是否支持指定算法的值。When overridden in a derived class, gets a value that indicates whether the specified algorithm is supported by this class. (继承自 SecurityKey) |
| IsSymmetricAlgorithm(String) |
在派生类中重写时,获取一个指示指定的算法是否使用对称密钥的值。When overridden in a derived class, gets a value that indicates whether the specified algorithm uses symmetric keys. (继承自 SecurityKey) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |