Language

NetworkSecurityConfig.Builder.SetDomainEncryptionMode Method

Definition

Specifies the domain encryption mode.

[Android.Runtime.Register("setDomainEncryptionMode", "(I)Landroid/security/net/config/NetworkSecurityConfig$Builder;", "", ApiSince=37)]
public Android.Security.Net.Config.NetworkSecurityConfig.Builder SetDomainEncryptionMode(Android.Security.DomainEncryptionMode mode);
[<Android.Runtime.Register("setDomainEncryptionMode", "(I)Landroid/security/net/config/NetworkSecurityConfig$Builder;", "", ApiSince=37)>]
member this.SetDomainEncryptionMode : Android.Security.DomainEncryptionMode -> Android.Security.Net.Config.NetworkSecurityConfig.Builder

Parameters

mode
DomainEncryptionMode

the domain encryption mode. For possible values see NetworkSecurityPolicy.getDomainEncryptionMode(String). Value is one of the following: NetworkSecurityPolicy.DOMAIN_ENCRYPTION_MODE_UNKNOWN; NetworkSecurityPolicy.DOMAIN_ENCRYPTION_MODE_DISABLED; NetworkSecurityPolicy.DOMAIN_ENCRYPTION_MODE_OPPORTUNISTIC; NetworkSecurityPolicy.DOMAIN_ENCRYPTION_MODE_ENABLED; NetworkSecurityPolicy.DOMAIN_ENCRYPTION_MODE_REQUIRED

Returns

the builder. This value cannot be null.

Attributes

Remarks

Specifies the domain encryption mode.

Android reference for android.security.net.config.NetworkSecurityConfig.Builder.setDomainEncryptionMode.

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