Pkcs12ShroudedKeyBag 类
定义
表示 PKCS#12 中的 ShroudedKeyBag,即内容为 PKCS#8 EncryptedPrivateKeyInfo 的容器。Represents the ShroudedKeyBag from PKCS#12, a container whose contents are a PKCS#8 EncryptedPrivateKeyInfo. 此类不能被继承。This class cannot be inherited.
public ref class Pkcs12ShroudedKeyBag sealed : System::Security::Cryptography::Pkcs::Pkcs12SafeBag
public sealed class Pkcs12ShroudedKeyBag : System.Security.Cryptography.Pkcs.Pkcs12SafeBag
type Pkcs12ShroudedKeyBag = class
inherit Pkcs12SafeBag
Public NotInheritable Class Pkcs12ShroudedKeyBag
Inherits Pkcs12SafeBag
- 继承
构造函数
| Pkcs12ShroudedKeyBag(ReadOnlyMemory<Byte>, Boolean) |
根据现有的已编码 PKCS#8 EncryptedPrivateKeyInfo 值初始化 Pkcs12ShroudedKeyBag 的新实例。Initializes a new instance of the Pkcs12ShroudedKeyBag from an existing encoded PKCS#8 EncryptedPrivateKeyInfo value. |
属性
| Attributes |
获取要使用 SafeBag 值编码的属性的可修改集合。Gets the modifiable collection of attributes to encode with the SafeBag value. (继承自 Pkcs12SafeBag) |
| EncodedBagValue |
获取此 SafeBag 内容的 ASN.1 BER 编码。Gets the ASN.1 BER encoding of the contents of this SafeBag. (继承自 Pkcs12SafeBag) |
| EncryptedPkcs8PrivateKey |
获取一个内存值,该值包含此包传输的 PKCS#8 EncryptedPrivateKeyInfo 值。Gets a memory value containing the PKCS#8 EncryptedPrivateKeyInfo value transported by this bag. |
方法
| Encode() |
对 SafeBag 值进行编码并将它作为字节数组返回。Encodes the SafeBag value and returns it as a byte array. (继承自 Pkcs12SafeBag) |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetBagId() |
获取标识此 SafeBag 的内容类型的对象标识符 (OID)。Gets the Object Identifier (OID) identifying the content type of this SafeBag. (继承自 Pkcs12SafeBag) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
| TryEncode(Span<Byte>, Int32) |
尝试将 SafeBag 值编码到提供的缓冲区中。Attempts to encode the SafeBag value into a provided buffer. (继承自 Pkcs12SafeBag) |