Pkcs8PrivateKeyInfo 类  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
允许检查和创建 PKCS#8 PrivateKeyInfo 和 EncryptedPrivateKeyInfo 值。 此类不能被继承。
public ref class Pkcs8PrivateKeyInfo sealedpublic sealed class Pkcs8PrivateKeyInfotype Pkcs8PrivateKeyInfo = classPublic NotInheritable Class Pkcs8PrivateKeyInfo- 继承
- 
				Pkcs8PrivateKeyInfo
构造函数
| Pkcs8PrivateKeyInfo(Oid, Nullable<ReadOnlyMemory<Byte>>, ReadOnlyMemory<Byte>, Boolean) | 初始化 Pkcs8PrivateKeyInfo 类的新实例。 | 
属性
| AlgorithmId | 获取对象标识符 (OID) 值,该值标识此密钥所用于的算法。 | 
| AlgorithmParameters | 获取一个内存值,该值包含与此密钥关联的 BER 编码的算法参数。 | 
| Attributes | 获取此私钥的可修改属性集合。 | 
| PrivateKeyBytes | 获取一个内存值,该值表示特定于算法的编码私钥。 | 
方法
| Create(AsymmetricAlgorithm) | 将指定密钥导出为 PKCS#8 PrivateKeyInfo,并返回其解码后的解释。 | 
| Decode(ReadOnlyMemory<Byte>, Int32, Boolean) | 将提供的数据读取为 PKCS#8 PrivateKeyInfo,并返回内容的对象视图。 | 
| DecryptAndDecode(ReadOnlySpan<Byte>, ReadOnlyMemory<Byte>, Int32) | 使用提供的基于字节的密码对提供的数据进行解密,并将输出解码为 PKCS#8 PrivateKeyInfo 的对象视图。 | 
| DecryptAndDecode(ReadOnlySpan<Char>, ReadOnlyMemory<Byte>, Int32) | 使用提供的基于字符的密码对提供的数据进行解密,并将输出解码为 PKCS#8 PrivateKeyInfo 的对象视图。 | 
| Encode() | 将此实例的属性数据编码为 PKCS#8 PrivateKeyInfo,并将编码作为字节数组返回。 | 
| Encrypt(ReadOnlySpan<Byte>, PbeParameters) | 在使用指定的基于字节的密码和加密参数进行加密后,根据此对象的属性内容生成 PKCS#8 EncryptedPrivateKeyInfo。 | 
| Encrypt(ReadOnlySpan<Char>, PbeParameters) | 在使用指定的基于字符的密码和加密参数进行加密后,根据此对象的属性内容生成 PKCS#8 EncryptedPrivateKeyInfo。 | 
| Equals(Object) | 确定指定对象是否等于当前对象。(继承自 Object) | 
| GetHashCode() | 作为默认哈希函数。(继承自 Object) | 
| GetType() | 获取当前实例的 Type。(继承自 Object) | 
| MemberwiseClone() | 创建当前 Object 的浅表副本。(继承自 Object) | 
| ToString() | 返回表示当前对象的字符串。(继承自 Object) | 
| TryEncode(Span<Byte>, Int32) | 尝试将此实例的属性数据编码为 PKCS#8 PrivateKeyInfo,并将结果写入到提供的缓冲区中。 | 
| TryEncrypt(ReadOnlySpan<Byte>, PbeParameters, Span<Byte>, Int32) | 在使用指定的基于字节的密码和加密参数进行加密后,尝试根据此对象的属性内容生成 PKCS#8 EncryptedPrivateKeyInfo,并将结果写入到提供的缓冲区中。 | 
| TryEncrypt(ReadOnlySpan<Char>, PbeParameters, Span<Byte>, Int32) | 在使用指定的基于字符的密码和加密参数进行加密后,尝试根据此对象的属性内容生成 PKCS#8 EncryptedPrivateKeyInfo,并将结果写入到提供的缓冲区中。 |