Freigeben über


KeyStore.PrivateKeyEntry Constructors

Definition

Overloads

KeyStore.PrivateKeyEntry(IPrivateKey, Certificate[])

Constructs a PrivateKeyEntry with a PrivateKey and corresponding certificate chain.

KeyStore.PrivateKeyEntry(IPrivateKey, Certificate[], ICollection<KeyStore.IEntryAttribute>)

Constructs a PrivateKeyEntry with a PrivateKey and corresponding certificate chain and associated entry attributes.

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 Certificates 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.

Java documentation for java.security.KeyStore.PrivateKeyEntry.KeyStore$PrivateKeyEntry(java.security.PrivateKey, java.security.cert.Certificate[]).

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 Certificates 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.

Java documentation for java.security.KeyStore.PrivateKeyEntry.KeyStore$PrivateKeyEntry(java.security.PrivateKey, java.security.cert.Certificate[], java.util.Set<java.security.KeyStore.Entry.Attribute>).

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