다음을 통해 공유


WifiEnterpriseConfig.EnableTrustOnFirstUse(Boolean) Method

Definition

Enable Trust On First Use.

[Android.Runtime.Register("enableTrustOnFirstUse", "(Z)V", "GetEnableTrustOnFirstUse_ZHandler", ApiSince=33)]
public virtual void EnableTrustOnFirstUse (bool enable);
[<Android.Runtime.Register("enableTrustOnFirstUse", "(Z)V", "GetEnableTrustOnFirstUse_ZHandler", ApiSince=33)>]
abstract member EnableTrustOnFirstUse : bool -> unit
override this.EnableTrustOnFirstUse : bool -> unit

Parameters

enable
Boolean

true to enable; false otherwise (the default if the method is not called).

Attributes

Remarks

Enable Trust On First Use.

Trust On First Use (TOFU) simplifies manual or partial configurations of TLS-based EAP networks. TOFU operates by installing the Root CA cert which is received from the server during an initial connection to a new network. Such installation is gated by user approval. Use only when it is not possible to configure the Root CA cert for the server. <br> Note: If a Root CA cert is already configured, this option is ignored, e.g. if #setCaCertificate(X509Certificate), or #setCaCertificates(X509Certificate[]) is called.

Java documentation for android.net.wifi.WifiEnterpriseConfig.enableTrustOnFirstUse(boolean).

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