WifiEnterpriseConfig.CaCertificate Property
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.
Get CA certificate. -or- Specify a X.
public virtual Java.Security.Cert.X509Certificate? CaCertificate { [Android.Runtime.Register("getCaCertificate", "()Ljava/security/cert/X509Certificate;", "GetGetCaCertificateHandler")] get; [Android.Runtime.Register("setCaCertificate", "(Ljava/security/cert/X509Certificate;)V", "GetSetCaCertificate_Ljava_security_cert_X509Certificate_Handler")] set; }
[<get: Android.Runtime.Register("getCaCertificate", "()Ljava/security/cert/X509Certificate;", "GetGetCaCertificateHandler")>]
[<set: Android.Runtime.Register("setCaCertificate", "(Ljava/security/cert/X509Certificate;)V", "GetSetCaCertificate_Ljava_security_cert_X509Certificate_Handler")>]
member this.CaCertificate : Java.Security.Cert.X509Certificate with get, set
Property Value
X.509 CA certificate
- Attributes
Exceptions
if not a CA certificate
Remarks
Property getter documentation:
Get CA certificate. If multiple CA certificates are configured previously, return the first one.
Java documentation for android.net.wifi.WifiEnterpriseConfig.getCaCertificate()
.
Property setter documentation:
Specify a X.509 certificate that identifies the server.
A default name is automatically assigned to the certificate and used with this configuration. The framework takes care of installing the certificate when the config is saved and removing the certificate when the config is removed.
Note: If no certificate is set for an Enterprise configuration, either by not calling this API (or the #setCaCertificates(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.