WifiEnterpriseConfig.SetCaCertificates(X509Certificate[]) Method
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.
Specify a list of X.
[Android.Runtime.Register("setCaCertificates", "([Ljava/security/cert/X509Certificate;)V", "GetSetCaCertificates_arrayLjava_security_cert_X509Certificate_Handler", ApiSince=24)]
public virtual void SetCaCertificates (Java.Security.Cert.X509Certificate[]? certs);
[<Android.Runtime.Register("setCaCertificates", "([Ljava/security/cert/X509Certificate;)V", "GetSetCaCertificates_arrayLjava_security_cert_X509Certificate_Handler", ApiSince=24)>]
abstract member SetCaCertificates : Java.Security.Cert.X509Certificate[] -> unit
override this.SetCaCertificates : Java.Security.Cert.X509Certificate[] -> unit
Parameters
- certs
- X509Certificate[]
X.509 CA certificates
- Attributes
Remarks
Specify a list of X.509 certificates that identifies the server. The validation passes if the CA of server certificate matches one of the given certificates.
Default names are automatically assigned to the certificates and used with this configuration. The framework takes care of installing the certificates when the config is saved and removing the certificates when the config is removed.
Note: If no certificates are set for an Enterprise configuration, either by not calling this API (or the #setCaCertificate(X509Certificate)
, or by calling it with null, then the server certificate validation is skipped - which means that the connection is not secure.
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.