KeyStore.PrivateKeyEntry Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
KeyStore.PrivateKeyEntry(IPrivateKey, Certificate[]) |
Constructs a |
KeyStore.PrivateKeyEntry(IPrivateKey, Certificate[], ICollection<KeyStore.IEntryAttribute>) |
Constructs a |
KeyStore.PrivateKeyEntry(IPrivateKey, Certificate[])
Constructs a PrivateKeyEntry
with a
PrivateKey
and corresponding certificate chain.
[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
Parameters
- privateKey
- IPrivateKey
the PrivateKey
- chain
- Certificate[]
an array of Certificate
s
representing the certificate chain.
The chain must be ordered and contain a
Certificate
at index 0
corresponding to the private key.
- Attributes
Exceptions
if privateKey
or chain
is null
.
if chain.length == 0
, the algorithm of the
private key does not match the algorithm of the public
key of the first certificate or the certificates are not
all of the same type.
Remarks
Constructs a PrivateKeyEntry
with a PrivateKey
and corresponding certificate chain.
The specified chain
is cloned before it is stored in the new PrivateKeyEntry
object.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
KeyStore.PrivateKeyEntry(IPrivateKey, Certificate[], ICollection<KeyStore.IEntryAttribute>)
Constructs a PrivateKeyEntry
with a PrivateKey
and
corresponding certificate chain and associated entry attributes.
[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
Parameters
- privateKey
- IPrivateKey
the PrivateKey
- chain
- Certificate[]
an array of Certificate
s
representing the certificate chain.
The chain must be ordered and contain a
Certificate
at index 0
corresponding to the private key.
- attributes
- ICollection<KeyStore.IEntryAttribute>
the attributes
- Attributes
Remarks
Constructs a PrivateKeyEntry
with a PrivateKey
and corresponding certificate chain and associated entry attributes.
The specified chain
and attributes
are cloned before they are stored in the new PrivateKeyEntry
object.
Added in 1.8.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.