Language

DomainEncryptionMode Enum

Definition

public enum DomainEncryptionMode
type DomainEncryptionMode = 
Inheritance
DomainEncryptionMode

Fields

Name Value Description
Unknown 0

Unknown setting for domain encryption in the app.

This is the default value returned by getDomainEncryptionMode(String) when not overridden. Network libraries should avoid performing any domain encryption and perform a standard TLS handshake, equivalent to DOMAIN_ENCRYPTION_MODE_DISABLED.

Android reference for android.security.NetworkSecurityPolicy.DOMAIN_ENCRYPTION_MODE_UNKNOWN.

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.

Disabled 1

Domain encryption is disabled for the app. ECH and GREASE should not be used.

Android reference for android.security.NetworkSecurityPolicy.DOMAIN_ENCRYPTION_MODE_DISABLED.

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.

Opportunistic 2

This constant was deprecated in API level 37.2. Use DOMAIN_ENCRYPTION_MODE_ENABLED instead.

Android reference for android.security.NetworkSecurityPolicy.DOMAIN_ENCRYPTION_MODE_OPPORTUNISTIC.

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.

Enabled 3

Domain encryption is in fully enabled mode for the app. ECH will be enabled when there is server support, otherwise GREASE will be used.

Android reference for android.security.NetworkSecurityPolicy.DOMAIN_ENCRYPTION_MODE_ENABLED.

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.

Required 4

Applies to