Share via


PKIXParameters Constructors

Definition

Overloads

PKIXParameters(KeyStore)

Creates an instance of PKIXParameters that populates the set of most-trusted CAs from the trusted certificate entries contained in the specified KeyStore.

PKIXParameters(ICollection<TrustAnchor>)

Creates an instance of PKIXParameters with the specified Set of most-trusted CAs.

PKIXParameters(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

PKIXParameters(KeyStore)

Creates an instance of PKIXParameters that populates the set of most-trusted CAs from the trusted certificate entries contained in the specified KeyStore.

[Android.Runtime.Register(".ctor", "(Ljava/security/KeyStore;)V", "")]
public PKIXParameters (Java.Security.KeyStore? keystore);
[<Android.Runtime.Register(".ctor", "(Ljava/security/KeyStore;)V", "")>]
new Java.Security.Cert.PKIXParameters : Java.Security.KeyStore -> Java.Security.Cert.PKIXParameters

Parameters

keystore
KeyStore

a KeyStore from which the set of most-trusted CAs will be populated

Attributes

Exceptions

if the keyStore is not initialized.

if keyStore does not contained any trusted certificate entry.

Remarks

Creates an instance of PKIXParameters that populates the set of most-trusted CAs from the trusted certificate entries contained in the specified KeyStore. Only keystore entries that contain trusted X509Certificates are considered; all other certificate types are ignored.

Java documentation for java.security.cert.PKIXParameters.PKIXParameters(java.security.KeyStore).

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

PKIXParameters(ICollection<TrustAnchor>)

Creates an instance of PKIXParameters with the specified Set of most-trusted CAs.

[Android.Runtime.Register(".ctor", "(Ljava/util/Set;)V", "")]
public PKIXParameters (System.Collections.Generic.ICollection<Java.Security.Cert.TrustAnchor>? trustAnchors);
[<Android.Runtime.Register(".ctor", "(Ljava/util/Set;)V", "")>]
new Java.Security.Cert.PKIXParameters : System.Collections.Generic.ICollection<Java.Security.Cert.TrustAnchor> -> Java.Security.Cert.PKIXParameters

Parameters

trustAnchors
ICollection<TrustAnchor>

a Set of TrustAnchors

Attributes

Remarks

Creates an instance of PKIXParameters with the specified Set of most-trusted CAs. Each element of the set is a TrustAnchor TrustAnchor.

Note that the Set is copied to protect against subsequent modifications.

Java documentation for java.security.cert.PKIXParameters.PKIXParameters(java.util.Set<java.security.cert.TrustAnchor>).

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

PKIXParameters(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected PKIXParameters (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Security.Cert.PKIXParameters : nativeint * Android.Runtime.JniHandleOwnership -> Java.Security.Cert.PKIXParameters

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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