Language

EapSessionConfig.Builder.SetEapTtlsConfig Method

Definition

Sets the configuration for EAP-TTLS.

[Android.Runtime.Register("setEapTtlsConfig", "(Ljava/security/cert/X509Certificate;Landroid/net/eap/EapSessionConfig;)Landroid/net/eap/EapSessionConfig$Builder;", "", ApiSince=31)]
public Android.Net.Eap.EapSessionConfig.Builder SetEapTtlsConfig(Java.Security.Cert.X509Certificate? serverCaCert, Android.Net.Eap.EapSessionConfig innerEapSessionConfig);
[<Android.Runtime.Register("setEapTtlsConfig", "(Ljava/security/cert/X509Certificate;Landroid/net/eap/EapSessionConfig;)Landroid/net/eap/EapSessionConfig$Builder;", "", ApiSince=31)>]
member this.SetEapTtlsConfig : Java.Security.Cert.X509Certificate * Android.Net.Eap.EapSessionConfig -> Android.Net.Eap.EapSessionConfig.Builder

Parameters

serverCaCert
X509Certificate

the CA certificate for validating the received server certificate(s). If a certificate is provided, it MUST be the root CA used by the server, or authentication will fail. If no certificate is provided, any root CA in the system's truststore is considered acceptable. This value may be null.

innerEapSessionConfig
EapSessionConfig

represents the configuration for the inner EAP instance. This value cannot be null.

Returns

Builder this, to facilitate chaining. This value cannot be null.

Attributes

Remarks

Sets the configuration for EAP-TTLS.

Tunneled EAP-TTLS authentications are disallowed, as running multiple layers of EAP-TTLS increases the data footprint but has no discernible benefits over a single EAP-TTLS session with a non EAP-TTLS method nested inside it.

Android reference for android.net.eap.EapSessionConfig.Builder.setEapTtlsConfig.

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