KeyStore.PrivateKeyEntry 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| KeyStore.PrivateKeyEntry(IPrivateKey, Certificate[]) |
使用和相应的证书链构造一个 |
| KeyStore.PrivateKeyEntry(IPrivateKey, Certificate[], ICollection<KeyStore.IEntryAttribute>) |
使用相应的证书链和关联的条目属性构造一个 |
KeyStore.PrivateKeyEntry(IPrivateKey, Certificate[])
使用和相应的证书链构造一个PrivateKeyEntryPrivateKey。
[Android.Runtime.Register(".ctor", "(Ljava/security/PrivateKey;[Ljava/security/cert/Certificate;)V", "")]
public PrivateKeyEntry(Java.Security.IPrivateKey privateKey, Java.Security.Cert.Certificate[]? chain);
[<Android.Runtime.Register(".ctor", "(Ljava/security/PrivateKey;[Ljava/security/cert/Certificate;)V", "")>]
new Java.Security.KeyStore.PrivateKeyEntry : Java.Security.IPrivateKey * Java.Security.Cert.Certificate[] -> Java.Security.KeyStore.PrivateKeyEntry
参数
- privateKey
- IPrivateKey
PrivateKey
- chain
- Certificate[]
表示证书链的 Certificate数组。
必须对链进行排序,并包含 Certificate 对应于私钥的索引 0。
- 属性
例外
如果 privateKey 为或 chain 为 null。
如果 chain.length == 0私钥的算法与第一个证书的公钥算法不匹配,或者证书不是同一类型。
注解
使用和相应的证书链构造一个PrivateKeyEntryPrivateKey。
指定 chain 在存储到新 PrivateKeyEntry 对象之前克隆。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
KeyStore.PrivateKeyEntry(IPrivateKey, Certificate[], ICollection<KeyStore.IEntryAttribute>)
使用相应的证书链和关联的条目属性构造一个PrivateKeyEntryPrivateKey。
[Android.Runtime.Register(".ctor", "(Ljava/security/PrivateKey;[Ljava/security/cert/Certificate;Ljava/util/Set;)V", "", ApiSince=26)]
public PrivateKeyEntry(Java.Security.IPrivateKey privateKey, Java.Security.Cert.Certificate[]? chain, System.Collections.Generic.ICollection<Java.Security.KeyStore.IEntryAttribute>? attributes);
[<Android.Runtime.Register(".ctor", "(Ljava/security/PrivateKey;[Ljava/security/cert/Certificate;Ljava/util/Set;)V", "", ApiSince=26)>]
new Java.Security.KeyStore.PrivateKeyEntry : Java.Security.IPrivateKey * Java.Security.Cert.Certificate[] * System.Collections.Generic.ICollection<Java.Security.KeyStore.IEntryAttribute> -> Java.Security.KeyStore.PrivateKeyEntry
参数
- privateKey
- IPrivateKey
PrivateKey
- chain
- Certificate[]
表示证书链的 Certificate数组。
必须对链进行排序,并包含 Certificate 对应于私钥的索引 0。
- attributes
- ICollection<KeyStore.IEntryAttribute>
属性
- 属性
注解
使用相应的证书链和关联的条目属性构造一个PrivateKeyEntryPrivateKey。
指定 chain 并 attributes 克隆,然后再存储在新 PrivateKeyEntry 对象中。
已在 1.8 中添加。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。