Share via


WifiEnterpriseConfig.IsServerCertValidationEnabled Property

Definition

Determines whether an Enterprise configuration enables server certificate validation.

public virtual bool IsServerCertValidationEnabled { [Android.Runtime.Register("isServerCertValidationEnabled", "()Z", "GetIsServerCertValidationEnabledHandler", ApiSince=31)] get; }
[<get: Android.Runtime.Register("isServerCertValidationEnabled", "()Z", "GetIsServerCertValidationEnabledHandler", ApiSince=31)>]
member this.IsServerCertValidationEnabled : bool

Property Value

True for server certificate validation is enabled, false otherwise.

Attributes

Remarks

Determines whether an Enterprise configuration enables server certificate validation.

The caller can determine, along with #isEapMethodServerCertUsed(), if an Enterprise configuration enables server certificate validation, which is a mandatory requirement for networks that use TLS based EAP methods. A configuration that does not enable server certificate validation will be ignored and will not be considered for network selection. A network suggestion with such a configuration will cause an IllegalArgumentException to be thrown when suggested. Server validation is achieved by the following: - Either certificate or CA path is configured. - Either alternative subject match or domain suffix match is set.

Java documentation for android.net.wifi.WifiEnterpriseConfig.isServerCertValidationEnabled().

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