PKIXBuilderParameters 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
| PKIXBuilderParameters(KeyStore, ICertSelector) |
Creates an instance of |
| PKIXBuilderParameters(ICollection<TrustAnchor>, ICertSelector) |
Creates an instance of |
| PKIXBuilderParameters(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
PKIXBuilderParameters(KeyStore, ICertSelector)
Creates an instance of PKIXBuilderParameters 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;Ljava/security/cert/CertSelector;)V", "")]
public PKIXBuilderParameters(Java.Security.KeyStore? keystore, Java.Security.Cert.ICertSelector? targetConstraints);
[<Android.Runtime.Register(".ctor", "(Ljava/security/KeyStore;Ljava/security/cert/CertSelector;)V", "")>]
new Java.Security.Cert.PKIXBuilderParameters : Java.Security.KeyStore * Java.Security.Cert.ICertSelector -> Java.Security.Cert.PKIXBuilderParameters
Parameters
- keystore
- KeyStore
a KeyStore from which the set of
most-trusted CAs will be populated
- targetConstraints
- ICertSelector
a CertSelector specifying the
constraints on the target certificate
- Attributes
Exceptions
if the keyStore is not initialized.
if keyStore does not contained any trusted
certificate entry.
Remarks
Creates an instance of PKIXBuilderParameters 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.
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
PKIXBuilderParameters(ICollection<TrustAnchor>, ICertSelector)
Creates an instance of PKIXBuilderParameters with
the specified Set of most-trusted CAs.
[Android.Runtime.Register(".ctor", "(Ljava/util/Set;Ljava/security/cert/CertSelector;)V", "")]
public PKIXBuilderParameters(System.Collections.Generic.ICollection<Java.Security.Cert.TrustAnchor>? trustAnchors, Java.Security.Cert.ICertSelector? targetConstraints);
[<Android.Runtime.Register(".ctor", "(Ljava/util/Set;Ljava/security/cert/CertSelector;)V", "")>]
new Java.Security.Cert.PKIXBuilderParameters : System.Collections.Generic.ICollection<Java.Security.Cert.TrustAnchor> * Java.Security.Cert.ICertSelector -> Java.Security.Cert.PKIXBuilderParameters
Parameters
- trustAnchors
- ICollection<TrustAnchor>
a Set of TrustAnchors
- targetConstraints
- ICertSelector
a CertSelector specifying the
constraints on the target certificate
- Attributes
Remarks
Creates an instance of PKIXBuilderParameters 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.
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
PKIXBuilderParameters(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected PKIXBuilderParameters(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Security.Cert.PKIXBuilderParameters : nativeint * Android.Runtime.JniHandleOwnership -> Java.Security.Cert.PKIXBuilderParameters
Parameters
- 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.